Bitcoin Transaction Fee Calculator: How to Work Out What You Pay

Updated

The short answer

To calculate a Bitcoin transaction fee, multiply the transaction's size in virtual bytes (vB) by the fee rate in satoshis per vB. A simple transaction with one input and two outputs on a native SegWit address is about 141 vB. The fee depends on size, not on how much bitcoin you send.

Bitcoin fees confuse many people because they are not a percentage. Sending 0.01 BTC and sending 1 BTC can cost the same, because the fee pays for space in a block, not for the value moved. This page gives the formula, so you can check any estimate your wallet shows.

The formula

fee = transaction size (vB) × fee rate (sat/vB)

Term Meaning
Satoshi (sat) The smallest unit of bitcoin. 1 BTC = 100,000,000 sat
vB (virtual byte) The unit used to measure transaction size for fee purposes
Fee rate What you offer per vB, in sat/vB. Miners generally pick the highest-paying transactions first
Inputs The earlier payments you are spending. More inputs make a larger transaction
Outputs Where the coins go: the payee, plus usually a change output back to you

The fee rate is set by you or your wallet. The size comes from how many inputs and outputs the transaction has and which address types are used.

Typical transaction sizes

These are approximate and depend on address type. Use them as a guide, not as exact numbers.

Transaction Approximate size
1 input, 2 outputs, native SegWit address About 141 vB
1 input, 2 outputs, older legacy address Larger, roughly 225 vB
Many inputs, such as spending lots of small payments Grows with every extra input

Native SegWit addresses (those starting with bc1) are generally cheaper to spend from, because they use less block space.

Worked examples

Example: a transaction of 141 vB at 10 sat/vB costs 141 × 10 = 1,410 sat, which is 0.0000141 BTC.

Example: the same 141 vB transaction at 50 sat/vB costs 141 × 50 = 7,050 sat, which is 0.0000705 BTC.

The amount you send does not appear in either calculation. To turn the fee into a dollar figure, multiply the BTC amount by the current Bitcoin price.

How to calculate your own fee

  1. Find the current fee rate. Mempool and block explorer sites show recent rates for slower, standard and faster confirmation. See what a block explorer is.
  2. Estimate the size. Use the table above, or the size your wallet shows in its advanced options.
  3. Multiply. Size in vB times the rate in sat/vB gives the fee in satoshis.
  4. Convert to BTC by dividing by 100,000,000.
  5. Compare with your wallet’s estimate. The wallet knows your exact inputs, so its number is the one that applies.

Why Bitcoin fees change

Each block has limited space, roughly one every 10 minutes (how Bitcoin works). When many people want to send at once, they compete by offering higher rates, and the cost to get in quickly rises. When demand is low, a low rate is often enough. Waiting transactions sit in the mempool until a miner picks them up.

How to pay less

  • Send when it is not urgent. Lower rates usually confirm eventually when the network is quiet.
  • Use a SegWit address to spend smaller transactions.
  • Avoid combining lots of tiny payments in one spend; each input adds size. Consolidating when fees are low can help later.
  • Do not set the rate below what is accepted. A transaction that is too cheap can wait a long time or be dropped.
  • Use a wallet with rate selection and speed-up options. Many wallets can replace a stuck transaction with a higher fee. See how to use a crypto wallet.

Exchange withdrawals are different

When you withdraw bitcoin from an exchange, the exchange often sets its own fixed network fee, which may not match the live rate. Check the preview on the withdrawal screen. For other chains, see Ethereum gas fees and gas fees in crypto.

Common questions

Why is my Bitcoin transaction stuck?

The fee rate may be lower than what miners are currently accepting. Wait, or use your wallet’s speed-up feature if it has one.

Is there a minimum fee?

Nodes apply a minimum relay fee, so a transaction below it is not passed on. Use your wallet’s suggested rate rather than guessing.

Can I get a fee back?

No. Fees go to the miner who includes the transaction. Check the details carefully before you send, because transactions cannot be reversed.

Sources

  1. developer.bitcoin.org supports: Bitcoin developer guide: transaction fees are based on byte size, miners prioritize by fee per byte, change outputs