Bitcoin Core removes a transaction from its mempool if it is still unconfirmed 336 hours (14 days) after entering, by default. The limit is set by the -mempoolexpiry option, so other nodes may keep or drop the same transaction at different times.
Sources and checks
T1Bitcoin Core src/kernel/mempool_options.hSource code, says this directly
/** Default for -mempoolexpiry, expiration time for mempool transactions in hours */
DEFAULT_MEMPOOL_EXPIRY_HOURS, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/kernel/mempool_options.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/kernel/mempool_options.h | grep -nF 'inline constexpr unsigned int DEFAULT_MEMPOOL_EXPIRY_HOURS{336};'Checked at block 976,759, 20 Nov 2026, 17:28 UTC: quotes 1/1, code 1/1
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 17:28 UTCblock 976,759
Published Revision 1, run 2026-11-20-seed-fees-and-mempool