Derivation Path
The route through an HD wallet's key tree that produces one specific address.
Basically
A derivation path is a list of steps. It tells a wallet how to make one specific key from a master seed.
Key Takeaways
- A derivation path tells an HD wallet how to generate a specific private key and address from a single master seed, using the format m/purpose'/coin'/account'/change/index.
- Different BIP standards define different paths: BIP-44 for legacy addresses, BIP-49 for SegWit-compatible addresses, BIP-84 for native SegWit, and BIP-86 for Taproot addresses.
- Using the wrong derivation path is one of the most common reasons wallets fail to display existing funds: the seed phrase is correct, but the wallet derives different keys and sees an empty balance.
What Is a Derivation Path?
A derivation path tells an HD (hierarchical deterministic) wallet exactly how to compute a specific cryptographic key from a master seed. It works like a file path on a computer: /home/user/documents navigates to a specific folder. A derivation path like m/84'/0'/0'/0/0 navigates to a specific key within a tree of billions of possible keys.
BIP-32 formalised the concept and defined the HD wallet standard. It established that a single seed can produce a practically infinite tree of key pairs, with each node addressable by its derivation path. Later BIPs (44, 49, 84, 86) standardised which paths to use for which address types, ensuring wallet interoperability.
Standardised derivation paths make wallet recovery possible. Without them, restoring a wallet from a seed phrase would be nearly impossible because the software would not know which keys to derive. Your funds would be effectively lost despite having the correct seed.
How It Works
Every derivation path follows a consistent structure. Each level represents a branching point in the key tree. The full path specifies the exact route from the root to a leaf key.
Path Structure
BIP-44 and its successors define the standard format. The format is:
Each component serves a specific role. The roles are:
Hardened vs. Unhardened Derivation
The apostrophe (') after certain levels indicates hardened derivation. This distinction matters for security.
Unhardened (normal) derivation can compute a child public key from the parent public key alone. This enables watch-only wallets. Given an extended public key (xpub), anyone can derive all child public keys and monitor addresses without access to private keys.
Hardened derivation requires the parent private key. Even if a child private key and the parent public key are both compromised, an attacker cannot compute the parent private key or sibling keys. The first three levels (purpose, coin type, account) use hardened derivation by convention, while the last two (change, index) use unhardened derivation to enable xpub-based address generation.
Standard Derivation Paths
Bitcoin uses four major derivation path standards. Each corresponds to a different address type:
BIP-84 native SegWit paths are the most widely used today, offering lower transaction fees than legacy addresses through the witness data discount. BIP-86 Taproot paths are newer and enable advanced features like Schnorr signatures and more complex spending conditions via Bitcoin Script trees. The Taproot and Schnorr signatures deep dive explains how they work together.
Derivation in Practice
A native SegWit account shows how a wallet derives its first receiving address. The steps are:
The full path for the first receiving address is m/84'/0'/0'/0/0. The second receiving address is m/84'/0'/0'/0/1. Change addresses follow the same pattern under the /1/ branch.
Wallet Recovery
Standardised derivation paths exist primarily for wallet recovery. When you restore a wallet from a seed phrase, the software scans standard paths to discover your funds. It derives keys at m/44'/0'/0', m/49'/0'/0', m/84'/0'/0', and m/86'/0'/0', then checks each derived address for transaction history.
Recovery only works because wallets agree on which paths to scan. If a wallet used a nonstandard path, another wallet would never find those funds during recovery.
Account Separation
The account level lets you maintain separate balances within the same seed. A business might use account 0 for operational funds and account 1 for reserves:
Both accounts derive from the same seed phrase, but their keys are cryptographically independent. Knowing the keys for one account reveals nothing about the other, thanks to hardened derivation at the account level.
Watch-Only Wallets and Xpubs
The last two levels use unhardened derivation, so an extended public key exported at the account level can generate all receiving and change addresses. This enables watch-only wallets that monitor balances and generate fresh receiving addresses without holding any private keys. A server can also generate addresses for customers while private keys remain on an air-gapped device.
Multi-Signature Wallets
Each cosigner in a multisig wallet configuration contributes keys derived from their own seed at a specific path. BIP-48 extended the standard for multisig setups by adding a script type level:
All cosigners must use the same path convention to reconstruct the multisig address correctly. A mismatch in derivation paths means the resulting address will not match, and funds sent to it may become inaccessible.
Wrong Path, Missing Funds
The most common derivation path issue is importing a seed phrase into a wallet that defaults to a different path than the one originally used. The seed is correct, and the wallet derives valid keys, but they are the wrong keys. The wallet shows a zero balance because it is looking at addresses that were never used.
You can try switching the wallet's address type or manually specifying the derivation path. Most modern wallets scan all four standard paths (BIP-44, 49, 84, 86) during recovery, but older or simpler wallets may only check one.
Non-Standard Paths
Some wallets and services use custom derivation paths for specific features. This is technically valid, but it creates recovery risk: if the wallet software disappears, no other wallet will know to scan that path unless you manually specify it. Always document any non-standard paths used for your funds.
Xpub Exposure and Privacy
An xpub shared at the account level reveals all current and future addresses for that account. It does not expose private keys, but it completely eliminates privacy for that account: anyone with the xpub can see every transaction, every balance, and every address. Treat xpubs with the same caution as you would a bank statement.
Gap Limit
Wallets check addresses sequentially during recovery (index 0, 1, 2,...) and stop after encountering a configurable number of consecutive unused addresses, known as the gap limit (typically 20). Recovery scanning will miss addresses generated beyond this gap if the intermediate ones were not used. This is rare in normal usage but can occur with automated systems that generate addresses in bulk.
Hardened Derivation Tradeoffs
Hardened derivation provides stronger security isolation but prevents public-key-only derivation. You cannot create a watch-only wallet for hardened child keys because you need the private key to derive them. The standard convention (hardened for purpose, coin, and account; unhardened for change and index) balances security with usability, but custom schemes that over-use hardened derivation can limit functionality.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.