joelube.xyz

Why Can a Cardano Transaction Have Multiple Inputs and Outputs?

A Cardano transaction can have multiple inputs and outputs because the extended Unspent Transaction Output (eUTXO) model treats each transaction as a set of explicit, indivisible chunks of value rather than as a modification to a single account balance. Unlike account-based blockchains where a transaction simply adjusts a sender’s and receiver’s total balance, Cardano transactions consume whole UTXOs and produce new ones. This design allows you to combine several smaller UTXOs to fund a payment and to split a large UTXO into multiple smaller outputs in a single transaction.

How utxos work in cardano

In the eUTXO model, your ADA and native assets are not stored as a single number under your address. Instead, they exist as a collection of unspent transaction outputs, each of which is a discrete object with a specific value and an associated address. When you receive ADA or tokens, a new UTXO is created at your address. When you send funds, you must select one or more existing UTXOs to “spend” as inputs, and the transaction produces one or more new UTXOs as outputs.

A single UTXO cannot be partially spent. If a UTXO holds 500 ADA but you want to send 200 ADA, you cannot send just 200 from that UTXO and leave 300 untouched. Instead, you must consume the whole 500 ADA UTXO as an input and create two outputs: 200 ADA to the recipient and 300 ADA back to yourself as change. This is the fundamental reason multiple outputs exist in many Cardano transactions.

Why multiple inputs are needed

Because UTXOs are indivisible, you sometimes need to combine several of them to reach a sufficient total for a payment. Consider these common scenarios:

Why multiple outputs are useful

Multiple outputs are not just a consequence of change - they serve several practical purposes:

The role of transaction fees

Transaction fees on Cardano are based on the size of the transaction in bytes, not on the amount of value being moved. A transaction with many inputs and outputs will be larger and therefore cost more in fees. This is a trade-off: batching payments into one transaction with multiple outputs can save total fees compared to sending several separate transactions, but including many small UTXOs as inputs can increase the fee due to the larger transaction size.

If you hold a large number of small UTXOs, you may eventually want to consolidate them into fewer, larger UTXOs in a single transaction to reduce future fees. However, the consolidation transaction itself will be relatively expensive because it must list many inputs.

Practical implications for wallet users

Most Cardano wallets handle input selection and change outputs automatically. When you specify a recipient and an amount, the wallet picks the necessary UTXOs and creates the change output for you. You generally do not need to think about the mechanics unless you are optimizing fees or dealing with native assets.

If you use a wallet that allows manual UTXO selection, you can choose which UTXOs to spend. This can be useful for consolidating small UTXOs or for ensuring that a specific UTXO containing a particular native asset is spent in a transaction.

A Simple Example

Imagine your address holds two UTXOs:

You want to send 150 ADA to a friend. The wallet will:

  1. Select both UTXOs as inputs (total 300 ADA).
  2. Create one output of 150 ADA to your friend.
  3. Create a second output of 150 ADA back to your address as change.

The transaction has two inputs and two outputs. If you instead wanted to send 50 ADA to two different friends, the wallet might use UTXO B as the sole input and produce three outputs: 50 ADA to Friend A, 50 ADA to Friend B, and 100 ADA back to you as change.

Summary

Multiple inputs and outputs in a Cardano transaction are a direct consequence of the eUTXO model, where value exists as discrete UTXOs that must be consumed whole. You need multiple inputs when no single UTXO holds enough value for your payment, and you get multiple outputs when you receive change or send to multiple recipients in one transaction. This design enables batching, asset splitting, and efficient use of the blockchain, though it also introduces fee considerations when you hold many small UTXOs.

Not financial advice. joelube.xyz publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.

Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.

Back to cardano