$> Kaya
~/tools/btc-weight-calculatorinteractive
/tools/btc-weight-calculator

BTC Weight Calculator

Use this BTC weight calculator to estimate Bitcoin transaction weight units, witness bytes, total bytes, and virtual size from common input and output mixes.

~/tools/btc-weight-calculatorestimate weight
Inputs
Outputs
Base bytes
Witness bytes
Estimated total bytes
Estimated weight units
Estimated vbytes
~/tools/btc-weight-calculator/examplesusage.txt

Example Usage

  • Estimate weight for a simple 1-input 2-output P2WPKH transaction.
  • Compare how P2TR and P2PKH inputs change vbytes and weight.
  • Check witness-heavy transactions before fee planning.
~/tools/btc-weight-calculator/guideREADME.md

BTC Weight Calculator Explained

A BTC weight calculator helps you estimate how large a Bitcoin transaction is under SegWit sizing rules. Instead of only showing raw bytes, it separates base bytes, witness bytes, total weight units, and virtual bytes. That matters because Bitcoin fee rates are usually priced in satoshis per virtual byte, while witness data is discounted in the weight formula. This tool is useful for wallet flows, fee planning, transaction simulation, and comparing script types like P2WPKH, P2TR, and older legacy inputs. It is an estimator based on common template sizes, but for most front-end planning work that is exactly what you need.

~/tools/btc-weight-calculator/faq3 items

FAQ

What is Bitcoin transaction weight?

Weight is the SegWit sizing metric that combines base bytes and witness bytes into a single fee-related value.

Why are vbytes different from raw bytes?

Because witness bytes are discounted under Bitcoin weight rules, so the billed virtual size can be smaller than total raw bytes.

Is this exact for every script path?

No. It uses common input and output templates, so unusual scripts may differ slightly.

~/tools/btc-weight-calculator/related5 links
~/tools/btc-weight-calculator/linksinternal