Skip to main content

Derivation path

A derivation path is the route a wallet follows from its master key to a particular private key and address, written like m/84'/0'/0'/0/0. The same seed phrase gives different addresses on different paths, so restoring a wallet on the wrong path shows an empty wallet even though the funds are safe. Most single-signature wallets today use m/84'/0'/0' (native segwit, addresses starting bc1q); write down the path your wallet uses next to your backup.

What is an HD wallet?​

A hierarchical deterministic (HD) wallet is one whose keys all descend from a single seed in a tree, as defined by the BIP32 standard. Every branch of the tree can produce new key pairs, so backing up the seed phrase once backs up every key the wallet will ever use. The derivation path names one branch of that tree.

What does each part of a path mean?​

m / 84' / 0' / 0' / 0 / 0
PartNameMeaning
mMasterThe master key, made from the seed phrase (and any passphrase)
84'PurposeWhich standard, and so which address type: 44 legacy, 49 nested segwit, 84 native segwit, 86 Taproot
0'Coin type0 for bitcoin; testnet uses 1
0'AccountSeparate accounts from one seed, each with its own addresses
0Change0 for receive addresses, 1 for change addresses
0IndexThe address number: 0, 1, 2 and so on

The apostrophe marks a hardened level. Hardened derivation means a leaked child private key cannot be combined with the parent's extended public key to recover the parent's keys, which is why the purpose, coin and account levels are hardened.

Anatomy of the derivation path m/44'/0'/0'/0/0: master seed, purpose, coin type where 0 means Bitcoin, account number, change flag where 0 is external and 1 is change, and the address index

Which path does each address type use?​

StandardPath (first receive address)Address typeExample address
BIP44m/44'/0'/0'/0/0Legacy (P2PKH)137oszRjc8tdUVWr5nSp6fzSND938PStMZ
BIP49m/49'/0'/0'/0/0Nested segwit (P2SH-P2WPKH)33S43b6qmVHVTjwp75M7XoTTPEvKVh8zqH
BIP84m/84'/0'/0'/0/0Native segwit (P2WPKH)bc1q6khgephuq2hyvrn49zrvsxztmtjg4ze7sxkpp4
BIP86m/86'/0'/0'/0/0Taproot (P2TR)bc1ps3yjzpnxeg9yx43f9zmrl9njhvlwh4pm5peuu5ucqqp7f4362cvqeesncf
BIP48m/48'/0'/0'/2'Multisig, native segwit (each key's path)bc1q... (longer, script hash)

BIP44 was written for wallets holding many coins and gives legacy addresses on bitcoin. BIP49 wraps segwit inside an older script type for compatibility. BIP84 native segwit is the common default and has lower fees than either. BIP86 Taproot uses Schnorr signatures and makes simple and complex spending conditions look alike on chain. BIP48 is the convention most wallets use for each key of a multisig. The address types reference compares the address formats themselves.

What if a restored wallet shows no balance?​

The usual cause is a different path or script type from the original wallet, not lost funds. Check which address type your old wallet used (the first characters of its addresses tell you, as in the table above), set the restoring wallet to the same one, and look again. Sparrow and most hardware wallet apps let you choose the script type when importing.