A CoinJoin is a Bitcoin transaction built collaboratively by several independent parties, each contributing their own inputs and receiving outputs of identical denomination. Because the resulting transaction contains many inputs and a row of equal-valued outputs, an outside observer cannot tell which input funded which output. The idea was proposed by Bitcoin developer Gregory Maxwell in 2013 and has since become the foundational privacy technique for Bitcoin: it breaks the “common-input heuristic” — the assumption that all inputs in a single transaction belong to the same entity — without requiring anyone to trust a centralized mixer with custody of their funds. This guide explains how CoinJoin transactions actually work at the protocol level, surveys the major implementations (Wasabi/WabiSabi, Samourai Whirlpool, JoinMarket), and covers the honest privacy benefits, the real limitations, and the legal landscape that every user should understand before running one.
How CoinJoin Works at the Protocol Level
Bitcoin transactions are made of inputs (UTXOs being spent) and outputs (new UTXOs created). In an ordinary payment, the wallet constructs a transaction with the sender's inputs, the payment output, and a change output back to the sender. Because every input in a transaction must be signed by whoever controls it, the transaction format itself forces all inputs to be aggregated together — and blockchain analysts have long assumed that inputs appearing in the same transaction are controlled by the same person or entity. This is the common-input heuristic, and it is the single most powerful tool in on-chain tracing. See our breakdown of how blockchain analysis traces Bitcoin transactions for how this works in practice.
A CoinJoin breaks that assumption by construction. Multiple participants each contribute one or more of their own UTXOs as inputs to a single shared transaction. The outputs are arranged so that several of them have identical value — for example, ten participants each contributing inputs and each receiving a fresh 0.05 BTC output. To an observer, the transaction shows ten inputs and a row of ten indistinguishable 0.05 BTC outputs. Any given output could have been funded by any given input, giving each participant a k-anonymity set of roughly the round size.
Critically, no participant ever sends coins to anyone else. Each participant signs only their own inputs, and each verifies that their own output is present with the correct value before signing. The coins stay under each participant's own keys throughout. This is what separates CoinJoin from old-style custodial tumblers: there is no operator holding a balance, no deposit-and-withdrawal record to subpoena, and no single point of failure where funds can be stolen. At most there is a coordinator that assembles the transaction template — but a well-designed CoinJoin protocol ensures the coordinator cannot link inputs to outputs either.
The technical challenge is coordination. Participants must agree on a transaction structure without learning each other's input-to-output mapping. In the simplest design, a coordinator gathers participants, collects their proposed inputs and outputs, builds the transaction, and broadcasts signatures for everyone to collect. That naive design leaks the mapping to the coordinator. Real implementations solve this with cryptographic protocols: blinded credentials, equalized output denominations, and (in JoinMarket's case) a market structure where roles are deliberately asymmetric.
Wasabi Wallet and the WabiSabi Protocol
Wasabi Wallet is the most widely used desktop CoinJoin implementation, built on the open-source WabiSabi protocol (documented publicly on GitHub). Wasabi runs coordinated rounds in which participants connect through Tor, register inputs, and receive blinded credentials from the coordinator. The coordinator issues zero-knowledge credentials that let participants prove they contributed value without revealing which inputs correspond to which outputs — the protocol uses Chaumian-style blind signatures so that even the coordinator cannot deanonymize participants. A user registers under one Tor identity as the input owner and a second, unlinked Tor identity as the output owner, so the coordinator sees credentials it cannot connect to specific users.
Wasabi's practical defaults matter for privacy: it enforces a minimum round size, uses standardized output denominations, and charges a small coordination fee on top of miner fees. The result is a CoinJoin that is resistant to even a malicious or curious coordinator — though users should remember that Wasabi's backend was once a centralized service, and round participation still depends on the coordinator operating honestly enough to produce valid transactions. (Wasabi has migrated infrastructure over time, and the open WabiSabi spec means other wallets can run compatible coordinators.)
One honest caveat: Wasabi CoinJoins are not perfectly uniform. Change outputs, different script types, and non-standard denominations can fingerprint a user's participation. The software tries to normalize these, but an analyst watching a specific wallet can still often infer that a given transaction is a Wasabi round — CoinJoin hides the linkage, not necessarily the fact of participation.
Samourai Wallet and Whirlpool: Fixed-Denomination Pools
Samourai Wallet's Whirlpool took a different approach: strict denomination pools. Before joining a pool, users run a preprocessing step (called Tx0) that breaks their coins down into standardized denominations — historically pools of 0.1 BTC, 0.05 BTC, and similar fixed sizes, with a fee output included. Each Whirlpool transaction contains five equal outputs of the pool denomination, contributed by up to five participants, giving a small but uniform anonymity set. Because every output in the pool has exactly the same value, there is no value-based fingerprint to distinguish participants.
Whirlpool also introduced the concept of chained mixing: outputs from one round could be re-mixed in subsequent rounds, and users could set a target anonymity score so their coins were mixed a minimum number of times before being considered private. This made Whirlpool popular with privacy-conscious users who wanted a measurable, repeatable mixing depth.
Important legal update: In April 2024 the U.S. Department of Justice charged the two founders of Samourai Wallet with conspiracy to commit money laundering and operating an unlicensed money transmission business, and seized the service's infrastructure. Whirlpool CoinJoins can no longer be initiated through the Samourai infrastructure, though the protocol specifications remain public and forks of the software exist in various states of maintenance. This case is a central data point in the legal discussion below.
JoinMarket: The Taker-Maker CoinJoin Market
JoinMarket is the most decentralized of the major implementations, and the most instructive for understanding CoinJoin's design space. Instead of a centralized coordinator, JoinMarket runs a market: “market makers” run always-on Yield Generators offering their coins for mixing, and “takers” pay a fee to makers to include their inputs in a CoinJoin. The taker constructs the transaction template, asks makers to sign, adds their own signatures, and broadcasts.
This design has a known structural weakness: because only the taker initiates the transaction, an analyst can often identify which party is the taker (the party paying fees) and which outputs correspond to the taker versus makers. JoinMarket mitigates this with change outputs, BIP32 address separation (coinjoin outputs live on a different branch than inputs and change), and maker fees sized so the taker's payment is obfuscated among equal outputs — but independent analysis (notably Peter Todd's 2025 comparison of CoinJoin implementations) showed that JoinMarket transactions can still be partially deanonymized because the taker's net contribution can often be calculated from the fee arithmetic. JoinMarket trades some anonymity for censorship resistance and decentralization: there is no coordinator to shut down or subpoena, which is precisely why it survived where coordinated services did not.
JoinMarket also pioneered ideas that influenced later work, including JAM (JoinMarket's planned coinjoin-anywhere extension), payjoin integration, and research into CoinJoin variants like Cross-Input Signature Aggregation (CISA), which uses Schnorr-style signature aggregation to make all inputs appear jointly authorized — making the transaction look even more like a single-party payment at the signature level.
What CoinJoin Actually Buys You: Privacy Benefits
The core benefit is breaking the common-input heuristic for the coins involved. Before a CoinJoin, an analyst watching your wallet knows that all inputs in your next transaction are yours. After a CoinJoin, your output could belong to any of the equal-denomination outputs in the round — your effective anonymity set is the number of equal outputs, which for a healthy Wasabi round can be dozens or hundreds of participants.
CoinJoin also creates plausible deniability. If your output is one of twenty identical outputs, an analyst cannot prove your funds went to any specific destination. This is valuable for breaking links between your known-KYC exchange deposit address and your subsequent spending, for severing ties between a payment and its later movements, and for compartmentalizing wallet histories.
But the benefits are frequently oversold. CoinJoin provides k-anonymity within a single round, not true anonymity:
- Participation is visible. Well-formed CoinJoin transactions are recognizable on-chain — many inputs, equal outputs, specific fee patterns. An analyst cannot link your input to your output, but can often tell you participated in a mix. For some threat models (a general public blockchain viewer) that may be acceptable; for others it is a leak.
- Rounds are not infinitely deep. Privacy is only as strong as the round's anonymity set and your mixing history. One round in a 20-person CoinJoin gives you roughly 20 candidates; the link is probabilistic, not provably broken.
- Change outputs and non-standard amounts can re-link you if not handled carefully.
- Network-layer leaks can undo everything: if you broadcast or query the blockchain over your home IP, or use a KYC'd node, the on-chain privacy gains can be nullified before they start.
Limitations, Attack Surfaces and Common Mistakes
CoinJoin is a heuristic-breaker, not a cryptographic guarantee. The specific weaknesses worth understanding:
- Timing and amount analysis. If you CoinJoin right after a distinctive incoming payment and withdraw to an exchange shortly after, temporal correlation can re-link the transaction. Wait, split amounts, and avoid round-tripping.
- Address reuse. Reusing an address that was ever a CoinJoin output alongside change or payment addresses destroys the separation the protocol creates. Use fresh addresses for everything downstream.
- Poisoning and dust attacks. Analysts and adversaries can send dust to your CoinJoin outputs hoping you later spend them in a way that reveals linkage. Careful wallet selection and avoiding spending mixed outputs with unrelated coins matters.
- Insufficient anonymity sets. A CoinJoin round with only a handful of participants provides very weak privacy. Wasabi enforces minimums for this reason; JoinMarket users must size their rounds deliberately.
- Chain analysis of the whole history. CoinJoin breaks one link; it does not erase the fact that coins with known history flowed into the mix. If your input coins were previously linked to your identity, the output inherits that tainted-history problem unless the entire lineage is obscured.
- Trusted coordinator risk in Wasabi-style protocols. Even with blinded credentials, a malicious coordinator could theoretically refuse to cooperate, fingerprint users by timing, or attempt denial-of-service. The WabiSabi design minimizes this but does not eliminate operator risk.
Legal and Regulatory Considerations
This is the section most articles skip and the one most worth reading carefully. CoinJoin occupies a genuinely ambiguous legal space, and the landscape shifted dramatically between 2019 and 2025.
In the United States, the pivotal document is FinCEN's November 2019 guidance on convertible virtual currency mixing, which stated that persons who administer or exchange CVC do not need to register as money transmitters if they neither accept nor transmit value — a position CoinJoin proponents cite because participants never transfer coins to a third party. However, FinCEN simultaneously warned that administrators or exchangers of mixing services may be money transmitters. The DOJ has since tested this boundary aggressively: the Samourai founders were charged with money laundering conspiracy and unlicensed money transmission (April 2024), and the Secret Service published a public advisory on cryptocurrency mixing in 2025 naming CoinJoin coordinators in the context of sanctions-evasion cases. The Tornado Cash saga ran parallel: OFAC sanctioned the mixer in 2022, a federal appeals court found the sanctioning of immutable smart contracts exceeded Treasury's authority, and OFAC lifted the sanctions in March 2025 — though the Fifth Circuit's reasoning was narrow and criminal prosecutions of individual users remained possible.
The pattern is clear: using CoinJoin software yourself is not clearly illegal in most U.S. jurisdictions, but operating or promoting a mixing service that handles third-party funds carries serious criminal exposure. Participants should also understand that privacy tools do not create a legal safe harbor — if the underlying funds are proceeds of crime, the tool's legality is irrelevant to your liability.
Elsewhere, the FATF Travel Rule and various national regulators treat privacy-enhancing technologies with suspicion; some exchanges delist or flag coins and transactions associated with mixing. Using CoinJoin can trigger exchange compliance flags, delayed withdrawals, or account reviews even when perfectly legal. Privacy itself is legal in most jurisdictions; the obligations around reporting, sanctions screening, and tax remain unchanged.
Practical guidance: this article is not legal advice. Before using CoinJoin at scale, consult counsel familiar with your jurisdiction, keep records of the lawful source of funds, and never use mixing to obscure criminal proceeds, evade sanctions, or defeat court orders. For darknet market participants specifically, our guide to darknet market deposit and withdrawal security covers the operational risk side, and spending Bitcoin privately with CoinJoin tools covers the threat-model side.
CoinJoin vs Other Bitcoin Privacy Tools
CoinJoin is one tool in a stack. It compares with alternatives as follows:
- PayJoin (BIP78): a two-party collaborative transaction where sender and receiver co-sign, making the payment output indistinguishable from the change output. Cheaper and simpler than CoinJoin but provides weaker privacy (essentially k=2) unless chained.
- Lightning Network: routes payments through payment channels, so the on-chain footprint is channel funding, not the payment itself. Excellent for payment privacy but requires liquidity and doesn't help with on-chain coin history.
- CoinSwap / atomic swaps: trustless peer-to-peer swaps that break on-chain linkage between input and output coins entirely. More private than CoinJoin in some models but less liquid and harder to use.
- Monero: protocol-level mandatory privacy via ring signatures and stealth addresses. Stronger anonymity guarantees than any Bitcoin CoinJoin, at the cost of a smaller ecosystem and exchange availability issues. See why Monero is considered the most private cryptocurrency and our Bitcoin vs Monero privacy comparison.
- Fresh addresses and UTXO hygiene: the baseline discipline that makes all of the above work. Reusing addresses destroys privacy faster than any tool can restore it.
For a broader comparison of CoinJoin implementations and their fees and ease of use, see our CoinJoin wallet comparison and the earlier CoinJoin explainer. If you're choosing a wallet for sensitive holdings, crypto wallet security for privacy-focused users covers backup and operational hygiene.
Conclusion
CoinJoin remains the most important privacy primitive Bitcoin has: a cooperative transaction format that breaks the common-input heuristic without custodial trust. Wasabi's WabiSabi protocol made coordinated CoinJoin practical and coordinator-resistant, Whirlpool demonstrated the power of fixed-denomination pools before its operators were prosecuted, and JoinMarket proved the market-based approach could survive without a central coordinator at all. The privacy is real but bounded — CoinJoin obscures linkage within a round, not participation itself, and it composes with rather than replaces address hygiene, network-layer privacy, and careful operational security. Legally, the ground is shifting: service operators face serious criminal exposure, while individual users occupy a grayer zone that varies by jurisdiction. Used deliberately, with realistic expectations about what k-anonymity can and cannot deliver, CoinJoin is a genuinely powerful tool — but it is one layer of a privacy stack, not a silver bullet.
References
- CoinJoin — Bitcoin Wiki
- CoinJoin documentation — Wasabi Docs
- WabiSabi coordinated coinjoin protocol specification
- How Good Are The Widely Used Coinjoin Implementations? — Peter Todd
- Public Advisory: Cryptocurrency Mixers — U.S. Secret Service (June 2025)
- OFAC FAQ 1076: Tornado Cash designation
- Evaluating usage of the Whirlpool Bitcoin privacy protocol — MIT Digital Currency Initiative
Comments 0