If your wallet asks someone else's server about your balance, that server learns your addresses, your IP and when you check them. Running Bitcoin Core yourself removes the stranger. Running it over Tor stops your ISP and your peers from tying your home connection to the transactions you broadcast.
This is the setup I use on a small Debian box. It works the same on Ubuntu and close enough on other Linux distributions. On macOS and Windows the Bitcoin Core settings are identical, only the Tor install differs.
Before you start
You need disk space and patience. The full chain is well over half a terabyte now and keeps growing. If that's a problem, set prune=550 (or any larger number of megabytes) and Bitcoin Core will verify everything but keep only recent blocks. A pruned node is a perfectly good backend for a personal wallet. It can't serve an Electrum server like Fulcrum or electrs, though, so if you plan to do that, keep the whole chain.
Initial sync over Tor is slow. Days rather than hours on modest hardware. Some people sync on clearnet and switch to Tor afterwards, which reveals to your ISP that you run a node but nothing about your wallet. Whether that trade is acceptable depends on your situation; for most people it's fine.
Install and configure Tor
Use the Tor Project's own package repository rather than an old distro version. The instructions are on support.torproject.org. Then edit /etc/tor/torrc so Bitcoin Core can talk to Tor's control port and create its own onion service:
ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
Restart Tor and add the user that runs Bitcoin Core to the group that can read the cookie. On Debian and Ubuntu that group is debian-tor:
sudo systemctl restart tor
sudo usermod -aG debian-tor $USER
Log out and back in so the group change takes effect. Forgetting this step is the single most common reason the onion service doesn't appear. If you want to understand the other options in that file, our torrc configuration article goes through the ones worth knowing.
Configure Bitcoin Core
Put this in ~/.bitcoin/bitcoin.conf:
proxy=127.0.0.1:9050
listen=1
bind=127.0.0.1
listenonion=1
torcontrol=127.0.0.1:9051
onlynet=onion
debug=tor
What each line does, briefly. proxy sends all outgoing connections through Tor's SOCKS port. bind=127.0.0.1 stops Bitcoin Core listening on your public interface. listenonion and torcontrol tell it to create an onion service through the control port so other Tor nodes can connect in. onlynet=onion restricts peers to onion addresses. debug=tor puts Tor-related messages in the log so you can see what went wrong.
About onlynet. Restricting yourself to onion peers means you depend on a smaller set of nodes, and Bitcoin Core's own documentation warns that this makes eclipse-style attacks easier. A reasonable middle ground is to add onlynet=i2p as well if you also run an I2P router, or to drop onlynet entirely and let clearnet connections go through the Tor proxy. With the proxy line set, those clearnet peers see a Tor exit's IP rather than yours.
Check that it worked
Start bitcoind and give it a minute, then:
bitcoin-cli getnetworkinfo
Look at the localaddresses section. You should see a 56-character address ending in .onion; that's your node's v3 onion address. The networks section should show onion as reachable and, if you used onlynet=onion, ipv4 and ipv6 as not reachable.
For a quick view of who you're connected to:
bitcoin-cli -netinfo 4
The net column should say onion for your peers. If you see ipv4 peers and you didn't intend to, something in the config isn't being read; check you edited the right file and that there isn't a second bitcoin.conf in a different data directory.
If no onion address appears, grep the log:
grep -i tor ~/.bitcoin/debug.log | tail -20
"Authentication cookie could not be opened" means the group permission step didn't take.
Connecting a wallet
The node only helps if your wallet uses it. Bitcoin Core's built-in wallet does so automatically. Sparrow can connect straight to Bitcoin Core over RPC. Electrum needs an Electrum server sitting in front of the node; the article on Electrum over Tor covers that.
If you'd rather not assemble this by hand, node distributions like Umbrel, Start9 and RaspiBlitz route Bitcoin Core through Tor out of the box. They're convenient. Just know which parts you're trusting them to have configured correctly, and run the same getnetworkinfo check. Many Bitcoin projects and block explorers also have onion addresses of their own, and the Bitcoin section of our onion directory is a reasonable place to look them up.
What this doesn't give you
A private node hides your network location and stops third parties seeing your wallet's queries. It does nothing to the transaction graph. If you reuse addresses or merge coins from your KYC exchange with coins from somewhere else, the chain still shows it. The node is the foundation, and the habits in address reuse and UTXO hygiene are the rest of the house.