• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Crypto
    Diagram showing multiple Bitcoin inputs combining into equal-value CoinJoin outputs to obscure transaction links

    CoinJoin is the most widely used privacy technique on Bitcoin, and one of the most misunderstood. At its core it is elegantly simple: multiple strangers combine their Bitcoin inputs into a single transaction with outputs of equal value, so that no one watching the blockchain can tell which input paid which output. The result breaks the most powerful analysis tool in on-chain forensics — the assumption that all inputs in a transaction belong to the same person. Understanding when that protection holds, when it fails, and what the legal exposure looks like is the difference between using CoinJoin well and merely feeling private.

    This guide explains how CoinJoin works mechanically, surveys the major implementations (Wasabi, Whirlpool, and JoinMarket), covers what privacy it realistically provides according to academic measurement studies, and lays out the legal and operational risks users should weigh before mixing. It is written as risk-education: CoinJoin is legal in most jurisdictions when used on your own funds, but the regulatory environment around privacy tools is changing rapidly, and the famous Samourai Wallet prosecutions show how contested the boundary has become.

    What CoinJoin Is

    CoinJoin was proposed by Bitcoin developer Gregory Maxwell in 2013, in a post titled “CoinJoin: Bitcoin privacy for the real world.” The idea has remained essentially unchanged since: instead of a privacy-preserving transaction structure (like Monero's ring signatures), CoinJoin creates a crowd inside an ordinary Bitcoin transaction. When five people each contribute an input and receive an equal-sized output in the same transaction, an observer knows the money came from one of those five inputs but cannot determine which output corresponds to which contributor.

    The technique does not hide amounts with equal precision — the equal outputs are what creates the ambiguity. It does not conceal that a mixing event occurred, and it does not make participants anonymous in any absolute sense. What it does is sever the deterministic link between “this address paid that address,” which is the foundational assumption behind most Bitcoin transaction tracing.

    How CoinJoin Works Mechanically

    A CoinJoin transaction is a perfectly ordinary Bitcoin transaction. Nothing about it is flagged or non-standard; it is broadcast like any other spend. What makes it a CoinJoin is the process that created it:

    1. Input registration. Each participant tells the coordinator (or the other participants, in decentralized designs) which unspent transaction outputs they want to contribute. The coordinator selects outputs of the same denomination — historically 1 BTC, more commonly 0.1 BTC with modern wallets — so all outputs can be made equal.

    2. Transaction construction. The coordinator builds a transaction containing every participant's inputs plus every participant's equal-value output addresses, plus fee inputs and change outputs as needed. The critical privacy requirement is that every output that receives mixed funds has the same value, so outputs are indistinguishable.

    3. Separate signing. Each participant signs only for their own inputs. Because Bitcoin transactions use per-input signatures, this is possible: each signature commits to the whole transaction but is produced independently, typically in an offline or blinded signing step so the coordinator never sees anyone's private keys or unblinded data.

    4. Broadcast. Once enough signatures are collected, the transaction is broadcast to the Bitcoin network and mined normally.

    On-chain, the result is a transaction with many inputs and many equal outputs. Analysts see the crowd; they cannot reliably name the individual inside it.

    The Major Implementations

    Wasabi Wallet runs Wasabi CoinJoin, historically coordinated through a central server that never custodies funds. Wasabi 2.x introduced the WabiSabi protocol, which improved on the original fixed-denomination model by supporting arbitrary output amounts, coin selection within a range, and more flexible fee structures. Wasabi also popularized post-mix consolidation features that help users avoid accidentally re-linking mixed coins. It remains one of the most widely used desktop implementations, with tens of thousands of CoinJoin transactions identified in academic measurement studies.

    Samourai Wallet's Whirlpool was the other dominant implementation until its shutdown. Whirlpool used fixed denominations (0.1, 1, 10, 100 BTC pools) and a tor-based coordinator, with Samourai users mixing among themselves. Important context for 2025–2026: Samourai Wallet was seized and its founders were prosecuted by the U.S. Department of Justice, and the Whirlpool mixing service has been shut down. The wallet software still exists in modified form, but the coordinated Whirlpool pools are no longer operational in their original design. The prosecutions themselves are covered in our Samourai Wallet arrest report, and they reshaped the legal landscape for CoinJoin providers.

    JoinMarket takes a fundamentally different approach: a decentralized marketplace. Instead of a trusted coordinator, JoinMarket uses an IRC-based order book (now with alternatives like Jam) where market makers post offers to mix coins for a fee, typically paid as a percentage of the mixed amount. Takers schedule CoinJoin transactions against makers' offers. This design has no central coordinator to seize, no server to subpoena, and fees set by market competition rather than a fixed protocol fee. The trade-off is complexity: JoinMarket's client interface is technical, and newcomers often need the community's documentation to use it safely.

    Other approaches. PayJoin (BIP78) and CoinSwap are related but distinct techniques: PayJoin combines a payment with a CoinJoin to hide the payment's link without equal outputs, while CoinSwap performs an atomic swap-style exchange that can preserve privacy across inputs and outputs of different values. Coin mixers and tumblers are a different category entirely — custodial services that take possession of your coins — and are covered in our mixer comparison article. For a broader comparison of privacy tools, see Bitcoin privacy tools: Wasabi, Samourai and JoinMarket.

    What Privacy CoinJoin Actually Provides

    The intuitive claim — “my coins are mixed, so I'm anonymous” — deserves scrutiny, because academic research has measured exactly how much anonymity CoinJoin buys.

    What it breaks. CoinJoin defeats the multi-input ownership heuristic for the inputs inside the transaction. If you send directly from an address a KYC exchange knows is yours to a darknet market, the link is trivial. If you first pass that coin through a CoinJoin, the exchange's records no longer point to the specific output you spent.

    What it does not break. The ACM's 2023 measurement study of Wasabi and Samourai (covering over 250,000 detected CoinJoin transactions between 2018 and 2022) found that tracing narrows the anonymity set considerably: roughly $322 million in mixed value could be traced directly to cryptoasset exchanges, and over $1.16 billion within two hops. Users who mix coins received directly from a KYC exchange, or who consolidate mixed outputs with their unmixed change in ways that create telltale patterns, substantially shrink their own anonymity set. The study concluded that address selection and post-mixing behavior can harm anonymity as much as the mixing helps it.

    The anonymity set is the pool. Your privacy equals the crowd you mixed with, minus the analysts who can narrow it down. A CoinJoin with 20 equal outputs gives roughly 20 candidates; repeated mixing in small pools gives analysts repeated chances to apply clustering heuristics. Denomination matching, fee patterns, timing, and tor/network-layer metadata all leak additional information.

    Network-layer privacy is separate. CoinJoin protects the transaction graph, not the network layer. Broadcasting a CoinJoin transaction over clearnet reveals your IP address to Bitcoin peers and any observer running a node. Serious users combine CoinJoin with Tor or a VPN, though this is operational guidance, not a guarantee.

    Limitations and Privacy Risks

    Several concrete limitations deserve emphasis:

    Equal-amount fingerprinting. Equal outputs are the mechanism and the fingerprint. Sophisticated analysts know which CoinJoin implementations produce which denominations and can flag your transactions as “mixed.” Being identifiable as a privacy-conscious user is itself a privacy loss in some threat models.

    Change outputs. If you receive change back from a CoinJoin transaction, that change output is usually linked to your inputs by analysts using change-detection heuristics. Modern wallets mitigate this by sending change to fresh addresses and avoiding patterns like unique denominations, but careless usage can undo much of the benefit.

    Re-consolidation mistakes. Combining mixed coins back into one UTXO, or spending mixed and unmixed coins in the same transaction, re-links everything. The golden rule: never spend two outputs that you want kept separate in the same transaction, and avoid obvious round-number consolidations that fingerprint your wallet.

    Coordinator trust. Centralized CoinJoin coordinators learn which inputs belong to which participant unless signing is properly blinded. WabiSabi-style protocols use blinded signatures so the coordinator cannot link participants to outputs; older fixed-denomination schemes relied more on procedural separation. A malicious coordinator could also attempt Sybil attacks — injecting its own inputs to shrink the anonymity set — which is why pool size and coordinator reputation matter.

    Timing and amount correlation. If you CoinJoin immediately before a distinctive payment (say, exactly 0.5 BTC to a specific address), an analyst watching exchange withdrawals or known service addresses can correlate timing and amounts even when the transaction graph is ambiguous.

    Legal and Regulatory Risks

    This is the section most articles skip, and it is the one most worth reading carefully.

    CoinJoin itself is not clearly illegal in most places. Using a non-custodial privacy tool on your own lawful funds is legal in the United States, the European Union, the United Kingdom, and most other major jurisdictions. However, three developments have substantially raised the stakes:

    The Samourai prosecutions. In April 2024, the U.S. Department of Justice charged Samourai Wallet co-founders Keonne Rodriguez and William Lonergan Hill with operating an unlicensed money transmitting business and conspiracy to money laundering, alleging Samourai processed over $2 billion in transactions including proceeds from darknet markets, fraud, and sanctions evasion. The defense argued Samourai never took custody of user funds and that FinCEN guidance (FIN-2019-G001) treats non-custodial software providers as outside money-transmitter rules; prosecutors countered that Samourai's coordinated Whirlpool service functioned as a mixing business. In November 2025, Rodriguez was sentenced to five years in prison and Hill to four. The legal significance is profound: U.S. authorities treated a coordinator of non-custodial CoinJoin transactions as a money transmitter, even though users always controlled their own keys. For individual users the precedent is murkier — no user of CoinJoin has been charged merely for mixing their own funds — but it signals aggressive enforcement appetite.

    Mixers vs. CoinJoin. Custodial mixers like Tornado Cash (sanctioned by OFAC in 2022) are a different legal category: they take possession of funds, which makes money-transmitter analysis straightforward. CoinJoin coordinators never custody funds, which is why the Samourai case was contested rather than obvious. Still, regulators increasingly treat coordinated privacy services as presumptively suspicious.

    Reporting and exchange exposure. If your exchange knows your identity and you withdraw to a CoinJoin, the exchange retains records of the withdrawal address and amount. The mixing obscures the downstream trail but not the fact that you mixed. In jurisdictions with strict AML regimes, deliberately obscuring transaction trails can itself attract scrutiny, particularly for large or repeated amounts.

    Other jurisdictions. The EU's Anti-Money Laundering Regulation (applicable from 2027) bans anonymous crypto accounts and tightens rules on privacy-enhancing tools; several EU member states already restrict or scrutinize mixing services. Russia, China, and parts of Asia have their own frameworks. Users should verify the law where they live and where their exchange operates, not assume a tool's popularity equals its legality.

    Our broader coverage of the Samourai enforcement action and the mixers and tumblers legality guide go deeper on these cases.

    Best Practices for CoinJoin Users

    If you decide CoinJoin is appropriate for your threat model, these practices materially improve the result:

    Use reputable, maintained software. Download Wasabi or JoinMarket only from official sources, verify signatures where offered, and keep the software updated. The post-Whirlpool landscape has shifted; check which implementations are actively maintained before trusting one.

    Mind your UTXOs. Only mix the coins you intend to spend privately. Keep a clean separation between mixed and unmixed funds. When spending, use only mixed outputs in a transaction; never combine them with identifiable coins.

    Let coins age. Spending a CoinJoin output immediately after mixing creates a tight time correlation. Let mixed coins sit for days or weeks before spending, and prefer spending them in amounts that don't exactly match your original withdrawal.

    Match amounts to your real needs. Withdrawing exactly 1.00000000 BTC from an exchange and CoinJoining it produces a conspicuous pattern. Round numbers, exact exchange withdrawal amounts, and immediate post-withdrawal mixing all fingerprint you.

    Protect the network layer. Run your node or wallet traffic over Tor or a reputable VPN. CoinJoin hides the transaction graph; it does nothing about IP-level correlation.

    Don't overdo small pools. Joining a CoinJoin with four participants gives you an anonymity set of four. Larger, well-mixed pools are worth the slightly higher fee.

    Understand what you're defending against. If your threat model is “my exchange shouldn't see where I spend,” CoinJoin plus Tor is a reasonable mitigation. If your threat model is “a nation-state with subpoena power over my exchange and chain-analysis tooling,” CoinJoin alone is a starting point, not a solution — Monero or careful operational security may be more appropriate. See how blockchain analysis traces Bitcoin transactions for the adversary's toolkit.

    Is CoinJoin Right for You?

    CoinJoin remains the most practical privacy upgrade available on Bitcoin: it uses the existing network, requires no new consensus rules, costs a small fee, and has a decade of production use behind it. Its weaknesses are equally real — it provides probabilistic rather than cryptographic privacy, it fingerprints you as a privacy user, and its legal footing is actively contested in the United States.

    Our recommendation: use CoinJoin when you have a genuine privacy need — protecting donation recipients, avoiding exposing your financial history to merchants and data brokers, or general financial privacy — and combine it with good wallet hygiene and network-layer protection. Do not treat it as anonymity, do not mix funds of unclear provenance, and stay current on the legal situation in your jurisdiction, because the Samourai precedent shows enforcement priorities can shift faster than wallet software.

    For related reading, see our CoinJoin explainer, the guide to spending Bitcoin privately, and wallet security for privacy-conscious users.

    External References

    Bitcoin Magazine: What Is CoinJoin? — accessible overview of the technique. ACM AFT 2023: Adoption and Actual Privacy of Decentralized CoinJoin Implementations in Bitcoin — the measurement study covering Wasabi and Samourai. JoinMarket on GitHub — the decentralized CoinJoin implementation. Wasabi Wallet — current CoinJoin-capable desktop wallet. U.S. DOJ: Samourai Wallet Superceding Indictment (SDNY) — the charging document in the Samourai prosecution. IRS Criminal Investigation: Samourai Founders Sentenced — November 2025 sentencing announcement.

    Author OnionInfoDesk
    CoinJoin Explained: Bitcoin Privacy Technique Guide
    Bitcoin Privacy Tools: Wasabi, Samourai and JoinMarket Compared
    Samourai Wallet Executives Arrested on Money Laundering Charges
    How to Spend Bitcoin Privately: CoinJoin Tools and Threat Model Guide

    Comments 0

    Add comment