# Bitcoin wallet gap limits: why an address can be missed during recovery

A wallet gap limit tells address discovery when to stop after consecutive unused derived addresses. It prevents an endless search, but a used address beyond a large unused gap can be missed. BIP-44 specifies a 20-address external-chain discovery gap; other wallets and policies can differ. The funds are not deleted when discovery stops—the wallet has not found that part of its address sequence.

Evidence: [Multi-Account Hierarchy for Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0044.mediawiki); [Frequently Asked Questions](https://electrum.readthedocs.io/en/latest/faq.html); [Hierarchical Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0032.mediawiki)

Canonical: https://degreesofsatoshi.com/encyclopedia/bitcoin-wallet-gap-limit/
Published: 2026-10-02
Substantively modified: 2026-10-02
Independently verified by an automated reviewer: 2026-10-02T19:29:20.637Z
Data current through: 2026-10-02

AI-assisted research and drafting with a separate automated source-verification pass; no external expert or named human review is implied.

## Key facts

- **Purpose:** Bound the search through derived addresses ([Multi-Account Hierarchy for Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0044.mediawiki))
- **BIP-44 rule:** 20 consecutive unused external addresses ([Multi-Account Hierarchy for Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0044.mediawiki))
- **Limit:** A discovery stop is not a consensus spending rule ([Hierarchical Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0032.mediawiki); [Multi-Account Hierarchy for Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0044.mediawiki))

## Count consecutive unused addresses

A discovery algorithm derives addresses along the relevant branch and checks their history. Under the cited BIP-44 rule, finding used addresses restarts the unused-gap count. The rule concerns transaction history, not merely whether an address has a nonzero balance today.

Account discovery and address discovery also have different steps. The correct seed is only one part of locating the intended account hierarchy and address type.

Evidence: [Multi-Account Hierarchy for Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0044.mediawiki)

## A payment after the gap can be invisible initially

Suppose external address index 0 was used, indices 1 through 20 were never used, and index 21 later received a payment. A search that stops after 20 consecutive unused addresses can end at index 20 before discovering index 21.

The example assumes that exact derivation branch and gap rule. It does not mean every wallet searches only 20 addresses in total or uses the same limit for change addresses.

Evidence: [Multi-Account Hierarchy for Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0044.mediawiki)

## Use known public evidence to narrow the search

Record known receiving addresses, account type and wallet version. Electrum’s documentation warns that addresses generated beyond its normal gap may require a larger search or explicit address generation during recovery. Use the product’s supported procedure, recognizing that historical defaults are version-specific.

A broader search can cost time and reveal more address information to a queried server. Do not publish a seed or extended private key merely to ask whether an address has transaction history.

Evidence: [Frequently Asked Questions](https://electrum.readthedocs.io/en/latest/faq.html); [Hierarchical Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0032.mediawiki)

## Questions

### Does the gap limit restrict how many Bitcoin addresses a wallet can have?

No. It limits a discovery search under a wallet policy, not the number of derivable addresses or a Bitcoin consensus rule. A wallet can derive beyond the normal search window, which is why recovery settings matter.

Evidence: [Hierarchical Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0032.mediawiki); [Multi-Account Hierarchy for Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0044.mediawiki)

### Does an emptied address count as unused?

Under BIP-44 account discovery, use is based on transaction history rather than current balance. An address that received and later spent funds has history even if it now holds no unspent output.

Evidence: [Multi-Account Hierarchy for Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0044.mediawiki)

## Claims and scope

### bitcoin-wallet-gap-limit-quick-answer

A wallet gap limit tells address discovery when to stop after consecutive unused derived addresses. It prevents an endless search, but a used address beyond a large unused gap can be missed. BIP-44 specifies a 20-address external-chain discovery gap; other wallets and policies can differ. The funds are not deleted when discovery stops—the wallet has not found that part of its address sequence.

Educational explanation. Product-specific behavior is scoped to the cited documentation, checked 2026-10-02.

Scope: {"collection":"bitcoin","dataAsOf":"2026-10-02","blockHeight":null}

### bitcoin-wallet-gap-limit-fact-purpose

Purpose: Bound the search through derived addresses

Scope: {"collection":"bitcoin","dataAsOf":"2026-10-02","blockHeight":null}

### bitcoin-wallet-gap-limit-fact-bip-44-rule

BIP-44 rule: 20 consecutive unused external addresses

Scope: {"collection":"bitcoin","dataAsOf":"2026-10-02","blockHeight":null}

### bitcoin-wallet-gap-limit-fact-limit

Limit: A discovery stop is not a consensus spending rule

Scope: {"collection":"bitcoin","dataAsOf":"2026-10-02","blockHeight":null}

## Sources

- [Multi-Account Hierarchy for Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0044.mediawiki) — Bitcoin Improvement Proposals. Hardened account paths and external-chain discovery gap rule. Locator: Path levels; Account discovery; Address gap limit. Retrieved: 2026-10-02T18:53:54.097Z.
- [Frequently Asked Questions](https://electrum.readthedocs.io/en/latest/faq.html) — Electrum. Electrum-specific sweep/import distinctions, seed recovery scope and address discovery. Locator: Does Electrum trust servers?; Can I import private keys from other Bitcoin clients?; Can I sweep private keys from other Bitcoin clients?; What is the gap limit?; How do I upgrade Electrum?. Retrieved: 2026-10-02T18:53:56.378Z.
- [Hierarchical Deterministic Wallets](https://raw.githubusercontent.com/bitcoin/bips/927b6de9915c9262615a6399de51b200f81e5aa4/bip-0032.mediawiki) — Bitcoin Improvement Proposals. Deterministic key derivation, backup scope and public/private child derivation. Locator: Motivation; Extended keys; Security. Retrieved: 2026-10-02T18:53:54.013Z.

## Revision history

- 2026-10-02: First publication after primary-source research and separate automated verification.

## Cite this entry

Degrees of Satoshi editorial project. “Bitcoin wallet gap limits: why an address can be missed during recovery.” Published 2026-10-02; updated 2026-10-02. https://degreesofsatoshi.com/encyclopedia/bitcoin-wallet-gap-limit/
