Bitcoin's blockchain is transparent by design: every transaction, input and output is permanently public, and most people assume this means Bitcoin has no privacy. CoinJoin is the technique that challenges that assumption, without changing the protocol at all. Instead of relying on encryption or a new chain, CoinJoin arranges for many users' Bitcoin spends to be merged into a single, large transaction where the link between inputs and outputs is deliberately broken. It is one of the most important privacy tools available for Bitcoin, and one of the most misunderstood.
This guide explains how CoinJoin actually works at the technical level, which implementations exist today and their current legal status, what privacy it really provides, and where its limits, and its legal dangers, begin. It is informational, not an endorsement: privacy tools are lawful to discuss and to use for legitimate purposes, but how and why you use them can have serious legal consequences that this article cannot fully address.
What CoinJoin is, in plain terms
CoinJoin was first popularized by Bitcoin core developer Gregory Maxwell in a 2013 post, and the idea is almost deceptively simple. Suppose Alice, Bob and Carol each want to send Bitcoin. Instead of three separate transactions, they coordinate so all their inputs and outputs land in one transaction on the blockchain. To an outside observer, the transaction shows dozens of inputs paying dozens of outputs, and there is no reliable way to tell which input funded which output.
The reason this works is a flaw in how people normally analyze the chain. Analysts have long relied on the "common input ownership" heuristic: if several inputs are spent together in one transaction, they probably belong to the same person. That assumption holds for ordinary wallets, but CoinJoin deliberately violates it by construction. Where it does not fully hold is the other direction, every output is also linked to every input of the transaction, so the anonymity comes from crowd size, not from magic. The set of outputs that could plausibly belong to you is called your anonymity set, and its size, not the act of mixing itself, is what determines how much privacy you gained.
CoinJoin is important because it is permissionless and non-custodial: no one takes possession of your coins, and in most designs no single party can steal them. The trade-off is that several implementations rely on a "coordinator", a server that schedules participants and assembles the transaction, which is exactly what later drew regulatory attention.
How a CoinJoin transaction works step by step
Although implementations differ, every CoinJoin follows roughly the same choreography:
1. Each participant contributes inputs. You select Bitcoin UTXOs (unspent transaction outputs) you are willing to spend. The protocol normalizes these into equal-value outputs so they become indistinguishable from each other on-chain.
2. Outputs are assigned and change is handled. Each participant receives one or more outputs of a standard denomination, plus, where needed, separate change outputs back to themselves. The change outputs are a major privacy leak if mishandled: if your change output is recognizable, the anonymity you just bought can be undone.
3. A coordinator (or peers) assembles the transaction. A coordinator collects signed transaction data from participants and constructs the joint transaction: N inputs, N same-value outputs, plus change and fee outputs. In peer-to-peer designs like JoinMarket, this role is spread across "makers" and a "taker" instead of a central server.
4. Everyone signs independently. Bitcoin allows every input to carry its own signature, so participants sign their own inputs without trusting each other or the coordinator with keys. This is what makes CoinJoin non-custodial in principle.
5. The transaction is broadcast once, atomically. All inputs must be valid and all signatures correct or the entire transaction fails, there is no partial execution. The result is one transaction on-chain where input-to-output mapping is deliberately ambiguous.
Two properties deserve emphasis. First, CoinJoin is forward and backward privacy: it breaks the link between where coins came from and where they go, but it does not hide that the coins exist or that the transaction happened. Second, the coordinator in designs like Wasabi and Whirlpool learns which inputs belong to which session at the moment the transaction is built, which is why those projects invested in coordinator separation, Tor-only networking, and (in WabiSabi) cryptographic designs meant to prevent the coordinator from linking inputs to outputs even at assembly time.
The main implementations
The CoinJoin ecosystem has been through a dramatic consolidation since 2024. Here is the honest state of play:
Wasabi Wallet (WabiSabi protocol). Wasabi is the most widely used CoinJoin wallet. Since version 2.x it uses WabiSabi, a protocol upgrade that introduced zero-knowledge proofs and credential systems intended to hide which inputs belong to which participant even from the coordinator. Coinjoins happen automatically in the background in rounds of roughly 50-150 participants, with no coordinator fee (clients only pay their own mining fees since v2.2). Important recent development: after the Samourai enforcement action, Wasabi's original zkSNACKs coordinator stopped offering CoinJoin services, and the wallet now lets users select third-party coordinators, a decentralized-coordinator model where services like Kruw.io host WabiSabi rounds. Wasabi remains actively developed and is open source (MIT license).
Whirlpool and the Ashigaru fork. Whirlpool, built into Samourai Wallet, used fixed-denomination pools, historically 0.001, 0.01, 0.05 and 0.5 BTC, where exactly five participants remix coins of equal value, then remix repeatedly to "churn" them through many rounds. In April 2024 the U.S. Department of Justice charged Samourai's founders with money laundering and operating an unlicensed money transmitting business, seized its infrastructure, and the wallet was effectively shut down. The community forked the code: Ashigaru is an open-source implementation of Whirlpool that runs on its own coordinators, Tor-only, and remains active. Whirlpool-style mixing now happens under the Ashigaru project rather than under the Samourai brand.
JoinMarket. JoinMarket takes a market-based approach instead of a fixed coordinator: "makers" post their coins for mixing and earn fees, while "takers" pay makers to build a CoinJoin when they need one. It is fully peer-to-peer, no central coordinator exists, and supports arbitrary amounts rather than fixed pools. The trade-offs: it requires running Bitcoin Core, it is more technical, and each taker CoinJoin is a fresh transaction rather than an automatic remix cycle. The original JoinMarket was archived in 2025; community successors such as joinmarket-ng carry the idea forward.
Adjacent techniques worth knowing. PayJoin is not a mixing pool at all, it merges your payment with the recipient's own inputs into one transaction, giving modest privacy improvement for free on many wallets. CoinSwap and similar atomic-swap-based protocols offer another route by swapping coins through an intermediary without revealing the link, though they are less widely deployed. Researchers comparing these designs, including a 2025 assessment by Bitcoin developer Peter Todd, generally conclude that the centralized-coordinator models (WabiSabi, Whirlpool) offer the largest, most reliable anonymity sets for ordinary users, while JoinMarket offers the strongest decentralization and a smaller anonymity set per transaction.
Privacy benefits, and what CoinJoin does not hide
Done properly, CoinJoin provides real privacy value: it breaks the most common chain-analysis heuristic (common input ownership), giving outputs an anonymity set of dozens to hundreds of identical outputs. When coins pass through multiple remixes or Whirlpool churn cycles, the effective set grows further. For someone whose threat model is "a chain analyst or an exchange's compliance team trying to link my deposit to my withdrawal," CoinJoin is one of the few practical tools that work on the public Bitcoin ledger.
The limits are equally important, and research is increasingly precise about them:
- Anonymity set size is not the whole story. A 2024-2025 academic study on real-world coinjoins found that input-output mapping heuristics can shrink the effective anonymity set by 10-50% in the weeks after mixing, especially when users later consolidate outputs or otherwise behave predictably.
- Change outputs leak. If your change goes back to a recognizable address or is spent in ways that reveal ownership, it can re-link the mixed coins. Best practice is to treat every post-mix output as needing its own privacy hygiene. Timings and amounts still matter. Input and output counts, transaction timing, and denominations outside the standard pool give analysts partial information.
- It does not hide the fact of mixing. CoinJoin transactions are identifiable on-chain, protocols publish recognizable patterns, and researchers have built detectors for them. "This person used CoinJoin" is itself a signal, and in some jurisdictions it can be treated as suspicious.
- It is not Monero. Bitcoin's privacy remains probabilistic and weaker than purpose-built privacy coins. Even a perfect CoinJoin gives k-anonymity, not unlinkability. Our comparison of Bitcoin vs Monero privacy covers that gap in more depth.
For how chain analysts actually reconstruct transactions, see our guide to how blockchain analysis traces Bitcoin transactions, and for the broader toolkit see how to spend Bitcoin privately: tools and threat model.
Legal risks, read this section carefully
CoinJoin sits in a genuinely contested legal space, and 2024-2025 made that concrete:
United States. In April 2024 the DOJ charged the founders of Samourai Wallet with conspiracy to commit money laundering and conspiracy to operate an unlicensed money transmitting business, alleging Samourai processed over $2 billion in transactions and laundered more than $100 million in criminal proceeds. The indictment specifically targeted Whirlpool and the Ricochet feature. In November 2025, the founders were sentenced to five and four years in prison respectively. The legal theory, that operating mixing software constitutes operating an unlicensed money transmitting business, is the key precedent: it targeted the operators, not individual users, but it signaled that U.S. authorities view mixing infrastructure as enforcement territory. A U.S. Secret Service advisory issued in 2025 explicitly lists CoinJoin-based tools among services used to launder proceeds and notes that operating a mixer with knowledge of illicit funds is a crime. For ordinary users the risk is lower but real: exchanges and law enforcement may treat coins with CoinJoin history as higher-risk, and in some contexts possession of laundered funds, regardless of intent, carries exposure.
Other jurisdictions. The EU's Anti-Money Laundering Regulation and the UK have moved to restrict crypto mixing services, and several countries treat anonymous crypto transfers as presumptively suspicious. Russia and a number of others have restricted or criminalized aspects of mixing. The legal status of merely using CoinJoin varies widely, it remains lawful in many places for legitimate privacy purposes, but " lawful to discuss" is not the same as "safe everywhere."
Practical takeaway. Using privacy software is not itself illegal in most Western jurisdictions, but if you live somewhere with strict AML rules, handle funds that touch sanctioned entities or darknet markets, or face a specific threat model involving law enforcement, the risks compound quickly. This is not legal advice, consult a qualified attorney in your jurisdiction before relying on CoinJoin for anything beyond routine financial privacy.
Best practices if you use CoinJoin
If you decide CoinJoin fits your privacy needs, the research and documentation point to a consistent set of practices:
- Use the current, maintained implementations. Wasabi Wallet (with a reputable third-party coordinator), Ashigaru for Whirlpool-style mixing, and joinmarket-ng for the peer-to-peer model. Avoid abandoned forks and any "mixing service" website that asks for custody of keys.
- Run it over Tor and ideally on a hardened OS. Wasabi bundles Tor and supports Tails/Whonix; Ashigaru is Tor-only by design. Network-layer privacy matters because the coordinator sees your IP at minimum.
- Let automatic remixes work. In Wasabi and Whirlpool, each remix round compounds your anonymity set. One-and-done mixing gives you the smallest possible set.
- Handle post-mix coins carefully. Do not consolidate mixed outputs together, do not send the full balance back to an address linked to your identity, and treat change outputs as deanonymizing. Spend mixed coins gradually and mix again before large identifiable transactions.
- Understand your threat model first. CoinJoin defeats chain-analysis heuristics, not network surveillance, exchange KYC, or targeted investigation. If your threat model includes a motivated adversary, CoinJoin alone is not a solution, read the comparison of Tails, Qubes and Whonix for the OS layer and our darknet market wallet security guide for wallet-layer practice.
- Keep records for tax and compliance purposes. Privacy tools do not exempt you from tax reporting or lawful disclosure obligations in most jurisdictions.
Bottom line
CoinJoin remains the most practical privacy upgrade available on Bitcoin today: it requires no protocol change, no trusted third party holding your keys, and delivers anonymity sets of tens to hundreds of outputs when used correctly. Wasabi's WabiSabi rounds and the Ashigaru Whirlpool fork currently offer the easiest paths; JoinMarket offers the most decentralized option at the cost of complexity. But the Samourai prosecution made one thing unmistakable, mixing infrastructure is now squarely in enforcement crosshairs, and the privacy you get is only as good as your anonymity set and your post-mix behavior. Use it for legitimate financial privacy, understand your jurisdiction's rules, and never treat CoinJoin as a substitute for the broader opsec discipline that actual privacy requires.
Sources and further reading
- Peter Todd, "How Good Are The Widely Used Coinjoin Implementations?" (2025)
- MIT Digital Currency Initiative, Whirlpool CoinJoin usage analysis
- U.S. IRS, Samourai founders sentenced (Nov 2025)
- U.S. Secret Service, Public Advisory: Cryptocurrency Mixers (2025)
- U.S. DOJ SDNY, Samourai Wallet superseding indictment
- Ashigaru, Whirlpool announcement and protocol notes
- Wasabi Docs, CoinJoin documentation
- Heuristics for Detecting CoinJoin Transactions on the Bitcoin Blockchain (arXiv)
This article is provided for informational and educational purposes only. It is not financial, legal, or tax advice. Laws regarding cryptocurrency privacy tools vary by jurisdiction and change frequently.
Comments 0