Overview
Work out a Bitcoin transaction's size and fee before you build it: give inputs and outputs as counts and types ("2 p2wpkh, 1 p2tr"; types p2pkh/legacy, p2sh-p2wpkh, p2wpkh/segwit, p2tr/taproot, p2wsh/multisig) and get the estimated vsize and weight, the fee in sats, BTC and USD at next-block, 30-min, 1-hour and economy rates (live from mempool.space) or at your own fee_rate, and how much you would save with taproot inputs.
Protocol
x402
Price
$0.0010
Payment Asset
USD Coin
Payment Network
Base
Category
crypto/transactions
Provider
Bitcoin tx fee calculator
Indexed
2026-12-01 21:27:22
Health
Status
healthy
Latency (p50)
136ms
Uptime (30d)
100.0%
Reliability Score
97/100
Last Checked
2026-12-05 01:35:21
Last Healthy
2026-12-05 01:35:21
Consecutive Failures
0
Input Schema
{
"method": "GET",
"queryParams": {
"inputs": "3 p2wpkh",
"outputs": "1 p2tr, 1 p2wpkh"
},
"type": "http"
}
Output Schema
{
"example": {
"btc_usd": 91250,
"chain": "bitcoin",
"est_vsize": 289,
"est_weight": 1156,
"fees": {
"economy": {
"fee_btc": 0.00000289,
"fee_sats": 289,
"fee_usd": 0.26,
"sat_per_vb": 1
},
"half_hour": {
"fee_btc": 0.00000867,
"fee_sats": 867,
"fee_usd": 0.79,
"sat_per_vb": 3
},
"hour": {
"fee_btc": 0.00000578,
"fee_sats": 578,
"fee_usd": 0.53,
"sat_per_vb": 2
},
"next_block": {
"fee_btc": 0.00001156,
"fee_sats": 1156,
"fee_usd": 1.05,
"sat_per_vb": 4
}
},
"input_types": {
"p2wpkh": 3
},
"inputs": 3,
"note": "Standard size estimates (single-sig; p2wsh = 2-of-3 multisig). Real size can differ by a few vbytes (signature length).",
"output_types": {
"p2tr": 1,
"p2wpkh": 1
},
"outputs": 2,
"saving_if_taproot_inputs_pct": 11.1,
"segwit": true,
"source": "mempool.space recommended fees",
"time": "2026-11-30T04:43:03.479Z"
},
"type": "json"
}