Sezga
English
Sign in

Blockchain technology · · 7 min read

UTXO vs account model: how a blockchain tracks balances

Blockchains record balances in two main ways. In the UTXO model used by Bitcoin, the ledger keeps a list of unspent transaction outputs and your balance is the sum of those pieces; in the account model used by Ethereum, every address has a single balance that transactions increase or decrease directly.

Both models answer the same questions: who owns how much, and how do we stop the same coins from being spent twice? The difference lies in how the answer is written into the ledger. That difference shapes many details users run into, from transaction fees and privacy to wallet behavior and stuck transactions.

The UTXO model: banknotes in a wallet

Think of UTXOs as banknotes in a physical wallet. If you carry a 20, a 50 and a 100, you say you have 170, but there is no single note with 170 printed on it. Bitcoin works the same way. Every transaction creates one or more outputs, and each output has an amount plus a locking condition that defines who can spend it. Most often the lock says "sign with the private key for this address."

An output is either completely unspent or completely spent; you cannot spend half of one. That is why every transaction has the same building blocks:

  • Inputs: references to earlier outputs being spent (which transaction, which output number) together with the signatures that unlock them.
  • Outputs: the amount going to the recipient and, if needed, change going back to the sender.
  • Fee: not written as a separate field. The difference between total inputs and total outputs goes to the miner who produces the block.

Nodes on the network keep an up-to-date list of every unspent output, known as the UTXO set. When a new transaction arrives, the check is simple: do the outputs referenced in the inputs exist in this list, and are the signatures valid? If an output was already spent, it is no longer in the list and the transaction is rejected. That is how double spending is prevented.

A payment step by step

A hypothetical example: Emma's wallet holds three UTXOs worth 0.02 BTC, 0.05 BTC and 0.10 BTC. The wallet shows a total balance of 0.17 BTC. Emma wants to pay 0.06 BTC. Her wallet software decides which outputs to use (coin selection) and has two options:

  1. One input: spend the 0.10 BTC output, send 0.06 BTC to the recipient and 0.0399 BTC as change to a new address of Emma's. The remaining 0.0001 BTC is the fee.
  2. Two inputs: spend the 0.02 and 0.05 BTC outputs together, send 0.06 BTC to the recipient and 0.0098 BTC as change. With two inputs the transaction is larger, so the fee is 0.0002 BTC.

On Bitcoin, the fee depends on the transaction's data size, not on the amount sent, and every extra input makes the transaction bigger. A wallet that has piled up many small UTXOs can therefore face a high fee even for a small payment.

The account model: a bank statement

The account model resembles a bank statement. Ethereum maintains a shared state in which every account has a balance and a transaction counter called the nonce. Smart contract accounts also store code and data.

A transfer lowers the sender's balance and raises the recipient's. There is no change, because the balance is updated directly rather than split into pieces. A hypothetical example: Alex has 1.5 ETH and a nonce of 7. He sends 0.4 ETH; the transaction uses 21,000 gas at a gas price of 10 gwei, so the fee is 0.00021 ETH. Once the transaction is in a block, Alex's balance drops to 1.09979 ETH, his nonce becomes 8 and the recipient's balance grows by 0.4 ETH.

The nonce does two jobs. First, ordering: an account's transactions are processed in nonce order. Second, replay protection: once a nonce is used it becomes invalid, so a signed transaction cannot run a second time even if someone rebroadcasts it. In the UTXO model this protection comes for free, because the spent output has already been removed from the list.

Tokens are stored in an interesting way under this model. The balance of a token built on a standard such as ERC-20 does not sit in your account; it is recorded in a table inside the token's smart contract. A token transfer is really a call asking that contract to update two rows of its table.

Comparing the two models

FeatureUTXO modelAccount model
How balances are keptSum of unspent outputsOne balance per account
Double-spend protectionSpent output leaves the listBalance and nonce checks
ChangeRequired, written as a new outputNot needed
Fee basisTransaction data sizeAmount of gas consumed
Parallel validationTransactions spending different outputs are independentShared state makes sequential execution more common
Complex programsHarder, limited ability to carry stateEasier, contract state is stored directly
Example networksBitcoin and networks derived from its codeEthereum and EVM-compatible networks

Each choice has a logic. Bitcoin focuses first on transferring value, and the UTXO model keeps validation simple and predictable. Ethereum aims to be a programmable platform, and applications where many users interact with the same contract are more natural to express with accounts. Hybrid designs exist too: Cardano, for example, uses an extended UTXO model in which outputs can carry extra data and conditions.

What it means in practice

This technical difference shows up in everyday use in several ways:

  • Dust outputs: on Bitcoin, very small outputs whose spending fee would exceed their own value can become practically unusable.
  • Consolidation: some users combine many small UTXOs into a single output sent to themselves during low-fee periods, so that later payments need smaller transactions.
  • Privacy: Bitcoin wallets usually send change to a fresh address, which makes tracking somewhat harder. However, chain analysis often assumes that inputs spent together in one transaction belong to the same person. In the account model, activity tends to gather under one address, so history is easier to follow.
  • Stuck transactions: on Ethereum, a transaction sent with too low a fee that does not get into a block also holds up that account's later transactions, because later nonces cannot be processed before the pending one. The usual fix is to send a new transaction with the same nonce and a higher fee.
  • Reading a block explorer: a Bitcoin transaction shows a list of inputs and outputs, and it is not always obvious which output is change. On Ethereum, sender, recipient and amount appear on a single line.

Neither model wins on every count. Each strikes a different balance between simplicity, flexibility, privacy and scalability.

Key takeaways

  • In the UTXO model, a balance is the sum of unspent outputs; each output is spent in full and any excess returns as change.
  • In the account model, each address has one balance that transactions update directly, while the nonce provides ordering and replay protection.
  • Bitcoin fees depend on transaction size, Ethereum fees on gas consumed; holding many small UTXOs can make spending more expensive.
  • UTXOs make simple, parallel validation easier; accounts make smart contracts easier to express.
  • Everyday issues such as dust, change addresses and stuck nonces come directly from this design difference.

The Sezga terminal

Live prices, liquidation feed, multilingual news, the Fed calendar, event memory and a paper-trading account on one screen. Access is by invitation.

Sign in

Related articles