• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Crypto
    Diagram explaining Bitcoin CoinJoin: multiple participants' inputs combined into one transaction with equal outputs to obscure transaction links

    CoinJoin is the most widely used privacy technique on the Bitcoin network. Instead of sending your coins in a transaction that only you control, CoinJoin combines your inputs with the inputs of several other, unrelated users into a single shared transaction with several equal-value outputs. Because Bitcoin transactions publish every input and output, this collaboration breaks the most important assumption that blockchain analytics relies on: that all inputs in a transaction belong to the same person. The result is a "mix" of coins where an outside observer can see that a payment happened, but cannot reliably tell which input paid which output.

    This guide explains how CoinJoin actually works at the protocol level, compares the major implementations that exist today, weighs the real privacy benefits against their limits, and covers the legal and operational risks you should understand before using one. If you want a shorter overview of the landscape, see our comparison of Bitcoin privacy tools including CoinJoin wallets, and our primer on how CoinJoin works.

    Why Bitcoin needs CoinJoin in the first place

    Bitcoin is pseudonymous, not anonymous. Every transaction is recorded permanently on a public ledger that anyone can download and analyze. Analysts cluster addresses using heuristics, the most powerful of which is the common-input-ownership heuristic: if several inputs are spent together in one transaction, they almost certainly belong to the same wallet or entity. Once addresses are clustered, analysts link clusters to real-world identities through exchange withdrawals, donation addresses, merchant records and other off-chain data.

    CoinJoin attacks the clustering step directly. By having many independent participants co-sign one transaction, each participant's coins are mixed with coins from strangers. An output of 0.1 BTC after a five-person CoinJoin could plausibly have come from any of five different inputs, so the analyst's confidence drops from near-certainty to a one-in-five guess. The larger the number of participants (the anonymity set), the stronger the protection.

    How a CoinJoin transaction works, step by step

    CoinJoin exploits a property of Bitcoin's signature scheme: signatures for different inputs are independent. That means several people can contribute inputs to the same transaction and each sign only their own inputs, without trusting each other with funds. A typical coordinated CoinJoin follows five stages:

    1. Registration. Each participant submits one or more UTXOs (unspent transaction outputs) plus a fresh receiving address to a coordinator. The coordinator never takes custody of anyone's coins; it only assembles the transaction.
    2. Coordination. The coordinator builds a single transaction containing all participants' inputs and a matching set of equal-denomination outputs, one per participant. A participant verifies that their own input and their own output address appear correctly before signing.
    3. Signing. Each participant signs only their own inputs, after checking the assembled transaction. No participant can see which other inputs map to which outputs beyond the values they contributed.
    4. Broadcast. The coordinator collects all signatures, completes the transaction and broadcasts it to the Bitcoin network.
    5. Confirmation. Once mined, every participant holds a fresh output of the agreed denomination. That output is now mixed with identical outputs from strangers.

    Two structural details matter. First, outputs are typically equal denominations so an analyst cannot match inputs to outputs by value. Second, each participant contributes a change output that returns their remainder minus fees; careful implementations hide or obscure change to limit further analysis. This design is sometimes called a Chaumian CoinJoin, after David Chaum's blind-signature mixing ideas, though modern implementations use Bitcoin's native script rather than Chaum's original blind signatures.

    Coordinator models: centralized rounds versus peer-to-peer markets

    Who assembles the transaction determines what trust you must place in the system. In centralized-coordinator CoinJoins such as Wasabi and the original Samourai Whirlpool, a server collects registrations, builds the round and broadcasts the result. The coordinator learns which IP address (or Tor session) registered which input and which output address was requested, so it can in principle link inputs to outputs even though it cannot steal the funds. This is a real but bounded risk: the coordinator is a passive observer, not a custodian, and implementations mitigate it by relaying traffic over Tor and by mixing quickly so registration timing reveals little.

    In decentralized maker-taker CoinJoins, exemplified by JoinMarket, there is no central coordinator. "Market makers" lock bitcoin in time-locked fidelity bonds and offer their UTXOs for mixing in exchange for a fee. A "taker" initiates a CoinJoin, selects makers from an order book and coordinates signing directly with them. Because the taker pays the fee, JoinMarket rounds can be smaller and cheaper than scheduled coordinator rounds, but JoinMarket transactions have historically shown weaker privacy than Whirlpool-style equal-denomination outputs: makers contribute outputs matched to the taker's payment, so value patterns can still leak information about who paid whom.

    The major implementations today

    Wasabi Wallet is a desktop Bitcoin wallet built around Chaumian CoinJoin. Users send coins to a pre-mix wallet, the coordinator assembles rounds of varying sizes, and mixed coins land in a separate post-mix wallet. Wasabi charges a coordinator fee proportional to the anonymity set and supports multiple denominations in one round. Its developer team has pushed toward the WabiSabi protocol, which uses credential-based registration to allow more flexible input and output values while preserving privacy. Wasabi is closed-source-adjacent in places and has been the subject of academic privacy analyses; treat it as the most user-friendly mainstream option, not the most trust-minimized.

    Samourai Wallet and Whirlpool once dominated mobile CoinJoin mixing. Whirlpool used fixed denomination pools (0.001, 0.01, 0.05 and 0.5 BTC), each transaction containing exactly five inputs and five outputs, with mixing fees collected in separate Tx0 transactions. In April 2024 the U.S. Department of Justice indicted Samourai's founders, seized the service's infrastructure and the app was removed from app stores. The Samourai codebase was later forked into the community-run Ashigaru project, which continues Whirlpool-style CoinJoin without the original team.

    JoinMarket (and its maintained fork JoinMarket NG) remains the decentralized alternative: command-line oriented, no central coordinator, maker-taker fee model. It suits technical users who want to avoid trusting any single coordinator and who can tolerate a steeper learning curve.

    Other tools fill adjacent niches: PayJoin (BIP78) hides the payment amount within a transaction without a round, coinswaps move value across chains, and Lightning Network payments break on-chain trails through payment channels rather than mixing. None of these replace CoinJoin for the specific goal of pooling many strangers' coins, but they compose with it. See our threat-model guide to spending Bitcoin privately for how these pieces fit together.

    What privacy CoinJoin actually buys you

    The honest answer is "a lot, with caveats." A successful CoinJoin into a large round can raise the cost of tracing a payment from trivial to expensive. Research on real-world usage shows that post-mix anonymity degrades over time: if you later consolidate two mixed outputs, spend them to an exchange deposit address, or reuse a mixed address publicly, the common-input heuristic links them again and shrinks the anonymity set for everyone who used the same denomination. Studies of Wasabi and Whirlpool transactions have measured anonymity-set reductions of roughly 10-50% shortly after mixing, shrinking toward negligible levels over months as participants behave predictably.

    Timing also leaks information. Coordinators see registration timing and IP addresses; if your network connection is unusually fast or slow, or you mix at an odd hour, you may stand out within the round. Higher-fee environments also reduce usage, which means smaller rounds and weaker anonymity exactly when privacy is most valuable. CoinJoin is best understood as raising the bar for analysis, not as making tracing impossible.

    Limitations and attack surfaces

    CoinJoin is not a silver bullet. Its main weaknesses include:

    • Small or Sybil-infiltrated rounds. If a coordinator admits its own fake participants, the effective anonymity set is smaller than it appears.
    • Change outputs. Poorly managed change can link your pre-mix and post-mix coins, undoing the privacy gain.
    • Post-mix hygiene. Spending mixed coins back to a KYC exchange, reusing addresses, or consolidating outputs re-links the cluster.
    • Amount correlation. If you CoinJoin a unique amount or participate in a round with an unusual denomination, analysts can narrow the candidate set.
    • Network-layer leaks. Broadcasting a CoinJoin over clearnet can link your IP to the transaction; Tor or a VPN is strongly advised.

    For a deeper treatment of how analysts actually trace transactions, read our piece on how blockchain analysis works and where it fails.

    Legal and regulatory risks

    Using CoinJoin is legal in most jurisdictions for ordinary privacy purposes, but the legal landscape shifted dramatically in 2024. The U.S. DOJ charged Samourai's founders not for CoinJoin itself but for operating an unlicensed money-transmitting business and conspiracy to launder over $100 million in criminal proceeds processed through the service's Whirlpool and related features. The founders pleaded guilty in late 2025 and received prison sentences. This case established that prosecutors will treat a privacy tool's marketing and actual usage, not just its architecture, as evidence of intent to facilitate money laundering.

    Practical implications: running or promoting a mixing service carries real criminal exposure in the United States and similar jurisdictions; merely using non-custodial wallet software is a different posture but not risk-free. Some countries restrict privacy coins and mixing tools more broadly, and exchanges increasingly flag CoinJoin-tainted coins, which can complicate off-ramps. If your jurisdiction treats privacy-enhancing technology skeptically, consult local counsel before mixing significant funds. This is general information, not legal advice.

    Best practices if you decide to mix

    If you choose to use CoinJoin, the following practices meaningfully improve the outcome:

    • Use standard denominations. In pool-based systems (Whirlpool, Ashigaru), use the common pool sizes rather than custom amounts that fingerprint your coins.
    • Mix repeatedly over time. One round gives you the anonymity set of that round; periodic re-mixing compounds the effect and avoids timing correlation.
    • Protect the network layer. Run the wallet over Tor or a trusted VPN so your IP address is not linked to your inputs.
    • Isolate pre-mix and post-mix. Never send mixed coins back into a wallet that still holds identifiable funds, and never consolidate two outputs from the same round.
    • Respect change outputs. Treat change as part of your identity surface; some wallets let you set a separate change address.
    • Mind the off-ramp. Coins that have been through large, well-known CoinJoin pools may draw exchange scrutiny. Plan cash-out routes accordingly.
    • Verify the software. Download wallets only from official sources, verify signatures where offered, and prefer open-source builds you can audit.

    For wallet security fundamentals, backups, seed phrases, Tor usage and operational security, see our guide to cryptocurrency wallet security and the broader operational security guide.

    Bottom line

    CoinJoin remains the most practical on-chain privacy upgrade Bitcoin has: it requires no new tokens, no trusted third party holding funds, and no protocol changes, and it demonstrably breaks the clustering heuristics that power most chain analysis. Its privacy is probabilistic and degrades with careless post-mix behavior, but done well, large rounds, standard denominations, Tor-protected sessions and clean wallet hygiene, it raises the cost of tracing your coins substantially. Choose Wasabi or Ashigaru Whirlpool for ease of use and larger rounds, JoinMarket NG for coordinator-free mixing, and always layer it with good operational security. And remember the Samourai precedent: the tool is legal to use in most places, but the operators of mixing services now face serious criminal exposure, which makes the choice of which implementation you trust a security question as much as a privacy one.

    Author OnionInfoDesk
    CoinJoin explained: the Bitcoin privacy technique
    How blockchain analysis traces Bitcoin transactions
    Bitcoin privacy tools compared: fees, privacy and usability
    Cryptocurrency wallet security guide

    Comments 0

    Add comment