Electrum is light because it doesn't download the blockchain. It asks an Electrum server about each of your addresses instead, and that design has a privacy cost people tend to skip over. The server receives your entire list of addresses, can see your balance and history, and by default also sees your IP address.
Tor fixes the IP part. Your own server fixes the rest. You can do one without the other, but it helps to know which problem each one solves.
Routing Electrum through Tor
You need Tor running somewhere on the machine. Either the standalone service (SOCKS on port 9050) or Tor Browser left open (SOCKS on port 9150). On Linux, installing the tor package and starting it is the cleaner option, since it doesn't depend on a browser window staying open.
In the GUI, go to Tools → Network, open the Proxy tab, tick "Use proxy", choose SOCKS5, and enter 127.0.0.1 and the port. Some versions also detect a local Tor on port 9050 and offer a checkbox to use it directly. Close the dialog and the status icon in the bottom right should turn blue, which means it's connected through the proxy.
The command-line equivalent, which I prefer because the setting is visible every time I launch it:
electrum --proxy socks5:127.0.0.1:9050
One trap. The proxy setting applies once Electrum reads it. If you open a brand-new wallet before configuring the proxy, Electrum connects to its default servers over clearnet first. Set the proxy, then open the wallet, or start from the command line with the flag.
Tails ships Electrum preconfigured to go through Tor, which is one of the easier ways to get this right without thinking about ports. If you use Tails, store the wallet in the Persistent Storage or you'll lose it on reboot.
The server still knows your addresses
This is where most guides stop, and it's the bigger leak. Electrum servers index the chain by address (strictly, by script hash). Your wallet subscribes to every address it has generated, including ones you haven't used yet. A server operator, or anyone logging at that server, can group them all together as one wallet.
With Tor, that operator doesn't know your IP. But the cluster of addresses is just as useful to someone doing blockchain analysis, and if any one of those addresses is linked to you by other means (an exchange withdrawal, a payment to a merchant), the server's view links the rest.
By default Electrum also talks to several servers at once to fetch block headers, though it only sends address queries to the main one. That's why you'll see the --oneserver flag recommended alongside a specific server.
Pointing it at your own server
The real fix is to run an Electrum server yourself, backed by your own Bitcoin Core node. The common options are electrs (Rust, light on resources), Fulcrum (fast, uses more disk), and Electrum Personal Server (only indexes your own wallets, so it's very light but less flexible). Node distributions such as Umbrel and Start9 bundle one of these.
Set up the node first, ideally following running your own Bitcoin node over Tor. Then, if your Electrum server is exposed as an onion service, you can reach it from anywhere through Tor:
electrum --oneserver --server youronionaddress.onion:50001:t --proxy socks5:127.0.0.1:9050
The :t means plain TCP and :s means SSL. Over an onion connection, plain TCP is normal because Tor already encrypts and authenticates the connection end to end; the onion address itself is the server's identity. On a local network without Tor, use SSL.
In the GUI, go back to the Network dialog, untick "Select server automatically", and type the server in the same host:port:protocol form.
Smaller leaks worth closing
The fiat exchange-rate display fetches prices from a third-party API. It goes through your proxy if one is set, but turning it off in Preferences means one less outside request. The same goes for the update check.
Electrum's coin control is good and underused. Open the Coins tab (View → Show Coins if it's hidden), and you can choose exactly which coins go into a transaction instead of letting the wallet merge them. That matters more for privacy than almost anything in this article; there's more on it in address reuse and UTXO hygiene.
Finally, download Electrum only from electrum.org and verify the GPG signature. Fake Electrum builds and malicious servers that push "update required" phishing messages have stolen real money over the years. If a server pops up a message telling you to download a new version from some link, close the wallet. The same goes for onion sites offering wallet downloads: compare the address against the official project page or the Hidden Wiki link directory before you trust it.