Each country sets its own rule. Some only need the passport to be valid for the length of your stay; many want it valid for six months beyond it. The wording matters, because six months from arrival and six months from departure are different dates. Airlines check too, because they have to fly back anyone refused entry, so a passport a few days short can stop you at check-in.
The Schengen area has two tests for non-EU visitors: the passport must have been issued within the last 10 years, and be valid for at least three months after the day you plan to leave. The issue date is the one that catches people out. Some older passports, including some UK passports renewed before 1 October 2018, were issued with extra months added, so they can be more than 10 years old before they expire.
Other things can make an in-date passport unusable: too few blank pages for the stamps or visas a country needs, damage to the photo page, or having reported it lost or stolen, which usually cancels it even if it turns up again. Travel authorisations such as the ESTA and UK ETA also end when the passport they're linked to expires.
Check the rule for every country on the trip, including ones you're only passing through, on official sources such as GOV.UK's foreign travel advice or your own government's equivalent. Our passport validity checker does the date maths. If it's close, renew before you book; renewals aren't instant.
Issued 2 March 2017, expires 2 December 2027. Arriving 10 March 2027: fails the 10-year test, despite almost nine months left.
Where you'll find it
On the photo page, labelled date of issue and date of expiry. The expiry date also appears in the machine-readable zone at the bottom.