17 October 2026 · 4 min read
CEX vs DEX, which one should you actually build
Custody, liquidity, regulation and who carries the risk. The two models compared on the decisions that change the build, not on the usual feature table.
Short answer
A centralized exchange holds customer assets; a decentralized one never does. That single difference decides your regulatory exposure, your liquidity strategy and who carries the loss on the worst day. They are not two versions of one product, they are two businesses, and almost nothing transfers between them if you pick wrong.
Most comparisons of centralized and decentralized exchanges are written for traders choosing where to trade. This one is for somebody deciding which to build, which is a completely different question with a completely different answer.
The short version: they are not two versions of the same product. They are two businesses that happen to produce a screen where people swap assets. Picking the wrong one is the most expensive mistake available in this field, because almost nothing transfers between them.
The one difference everything else follows from
A centralized exchange holds the assets. A decentralized exchange does not.
That is the whole fork in the road. Every other difference is downstream of it.
| Centralized | Decentralized | |
|---|---|---|
| Who holds assets | You, on behalf of users | Nobody; users keep their own |
| Order model | Order book, matched off chain | Usually an AMM pool, settled on chain |
| Speed and cost | Fast, free to place orders | Bound by block time and gas |
| Liquidity source | Market makers, your own book | Liquidity providers depositing into pools |
| Who you answer to | Regulators, in most places | Mostly nobody, until you add a front end and a company |
| Where the risk sits | With you, if keys or approvals fail | With the contracts, permanently |
| Fixing a bug | Deploy | Often you cannot; contracts are immutable |
Why custodial is harder than it looks
Holding other people's assets is the trigger for most regulation on earth. It brings licensing, segregation, audits, AML obligations and an operational burden that never stops. Where exchange losses actually come from is blunt about it: published incidents are rarely clever cryptography, they are keys, approvals and operations.
In exchange you get a product that behaves: fast matching, no gas, fiat rails, support that can actually reverse a mistake, and a business model that is understood by banks and by buyers.
Why non custodial is harder than it looks
No custody means far less regulatory exposure and no hot wallet to lose. It also means:
- Your bugs are permanent. A deployed contract usually cannot be patched. An error in fee maths or an access control mistake is live forever unless you planned for upgradeability, which brings its own risks.
- You need an audit before launch, not after. That is a real, separately quoted cost from a specialist firm, and it is not optional for anything holding value.
- Liquidity is a cold start problem with no shortcut. There is no market maker to call. People deposit into your pools or they do not, and they expect returns for it. How a new exchange gets liquidity covers the centralized routes; a DEX has fewer.
- You have no support lever. A user who sends to the wrong address is gone. You cannot help, and they will still ask.
DEX development, what changes when there is no custody goes deeper on the engineering.
The questions that actually decide it
Not "which is more modern". These:
- Do you want to hold client assets? If the answer is no, the decision is made. If yes, go in knowing the regulatory and operational weight.
- Will you offer fiat? Fiat and non custodial do not combine well. A bank rail generally needs a regulated, identified counterparty.
- Who are your users? Retail users overwhelmingly expect an account, a password reset and someone to email. A DEX gives them none of that.
- What is your edge? If it is liquidity relationships or a local market, centralized. If it is a novel mechanism or a token economy, decentralized.
- Can you fund an audit? If a contract audit is outside budget, a DEX is outside budget. Shipping unaudited contracts that hold value is not a corner worth cutting.
The hybrid that usually gets proposed
Somebody always suggests "centralized matching, decentralized settlement". It exists, it works, and it combines the regulatory exposure of custody with the engineering cost of contracts. Occasionally that trade is right. Usually it is a decision nobody has fully costed, and it should be taken deliberately rather than as a compromise between two people in a meeting.
Questions
Is a DEX cheaper to build than a CEX?
Not reliably. You save the custody layer, the fiat rails and much of the compliance surface, then spend it on contract development and a mandatory audit. The costs land in different places rather than disappearing.
Which one makes more money?
Centralized venues have more revenue levers: trading fees, spread, withdrawal fees, listings and float. How a crypto exchange makes money goes through them. A DEX earns from pool fees and has to share most of it with liquidity providers.
Can I start with one and move to the other?
Not meaningfully. The ledger, the custody model and the trading mechanism are all different. Treat it as building a second product, not as a migration.
Do I need a licence for a DEX?
Less likely than for a custodial venue, but "decentralized" is not a legal shield by itself, particularly once there is a company, a front end and a fee going somewhere. That is a question for counsel. Licences by country compares the regimes.
Which should a first time operator build?
A centralized spot exchange, in most cases, because the failure modes are known and recoverable and users understand the product. Build a DEX when the decentralization is the point, not when it sounds cheaper.