Departures board in a busy international airport terminal with travellers walking past at dusk

📋 Certificates · Published 15 October 2026

Does a Layover Count for Yellow Fever? The 12-Hour Transit Rule Explained

Short answer: usually not — unless it's long, or you leave the airport. Most countries that demand a yellow fever certificate from travellers arriving from "risk" countries only apply that rule to layovers of more than 12 hours in a risk country's airport. A typical two- or three-hour connection in Addis Ababa, Nairobi, Panama City or Bogotá doesn't trigger it for destinations like South Africa, Thailand or Australia. But a long overnight layover can, leaving the airport during your connection almost always does, and a few destinations use different rules entirely.

That's the headline. The details below are what decide whether you get waved through at the gate — or pulled aside.

Why a layover matters at all

Under the International Health Regulations, yellow fever is the only disease for which a country can legally demand proof of vaccination at the border. Many countries with no yellow fever of their own — South Africa, Thailand, India, Australia, Costa Rica — require a certificate from travellers who are arriving from a country with risk of yellow fever transmission, because an infected traveller plus the right local mosquito could start an outbreak.

Here's the part that catches people: those rules work at the country level. Ethiopia, Kenya, Panama and Colombia — home to four of the biggest connecting hubs for flights to Africa and Latin America — all have yellow fever risk in parts of the country. The airport cities themselves are often low-risk or no-risk:

  • In Kenya, vaccination is generally not recommended for travel only to Nairobi or Mombasa.
  • In Panama, it's not recommended for travel limited to Panama City, the Canal area or west of the Canal.
  • In Colombia, it's not recommended for travel limited to Bogotá.

But for border purposes, you're still arriving from "Kenya" or "Panama." That's why the transit rule exists — and why it's worth understanding before you're standing at a check-in desk.

The 12-hour rule, in plain English

The most common wording in country requirements is that a certificate is required from travellers "having transited for more than 12 hours through an airport of a country with risk of yellow fever transmission."

In practice that means:

  • Under 12 hours, staying airside: the transit generally doesn't count. You can connect in Addis Ababa on Ethiopian Airlines, or Nairobi on Kenya Airways, without needing a certificate for the next country on account of that connection.
  • More than 12 hours in the airport: it counts, even if you never pass through immigration.
  • Leaving the airport: if you clear immigration — to sleep in a city hotel, see the sights, or because your airline requires it on a self-transfer — you've entered the country. You're now arriving from a risk country, full stop, whatever the clock says.

CDC's advice to travel clinics reflects this: check the whole itinerary, including airport transfers and long layovers that involve going through immigration.

How popular destinations treat transit

Rules are set country by country and can change at short notice. This is how some of the destinations travellers most often reach via a risk-country hub currently describe their requirements, according to the UK's National Travel Health Network and Centre (NaTHNaC):

Destination Certificate required from travellers arriving from risk countries? Transit rule Minimum age
South Africa Yes Required after more than 12 hours in transit at a risk country's airport Over 1 year
Thailand Yes Required after more than 12 hours in transit at a risk country's airport 9 months
Australia Yes (Galápagos Islands excepted) Required after more than 12 hours in transit at a risk country's airport Over 1 year
Tanzania Yes Required after more than 12 hours in transit at a risk country's airport Over 1 year
India Yes — if arriving within 6 days of leaving a risk area Passengers who stayed within the airport during transit are exempt if the Health Officer agrees; travellers without a certificate can be isolated for up to 6 days 9 months
Costa Rica Yes — from its own list of countries (it adds Rwanda, Tanzania and Zambia, and leaves out Argentina and Panama) Exempt if you remain solely within the international transit area 9 months

Requirements as published by NaTHNaC in October 2026. Always re-check close to travel.

Two things stand out. First, the 12-hour threshold is the norm, but India and Costa Rica don't use it — India's rule is built around a 6-day window and a Health Officer's discretion, while Costa Rica exempts airside transit of any length. Second, the list of "risk countries" each destination uses can differ from WHO's list — Costa Rica being the clearest example.

Real routes, worked through

New York → Addis Ababa (3 hours) → Johannesburg. Ethiopia is a risk country, but you're well under 12 hours and staying airside. South Africa's transit rule isn't triggered. No certificate needed for this connection.

London → Addis Ababa (14-hour overnight) → Bangkok. Over 12 hours. Thailand's rule applies even if you never leave the terminal. You need a valid certificate — or a different flight.

Toronto → Nairobi (stopover for two nights) → Cape Town. You left the airport, so you've been in Kenya. South Africa will treat you as arriving from a risk country.

Los Angeles → Panama City on Copa (2 hours) → San José, Costa Rica. Panama isn't on Costa Rica's list, and airside transit is exempt anyway. No certificate needed for this connection.

Miami → Bogotá on Avianca (overnight, but airside) → San José. Colombia is on Costa Rica's list — but Costa Rica exempts travellers who stay in the international transit area. If you'd spent those nights in Bogotá or Cartagena instead, you'd need the certificate. (If you're heading the other way, into Colombia from Brazil, see our Brazil to Colombia certificate guide.)

Sydney → Johannesburg → Nairobi → back to Sydney. Coming home counts too. Australia requires proof from travellers over 1 year arriving from risk countries — so returning from a Kenya safari is exactly the scenario the rule is designed for.

Why people get stopped at the gate

Most yellow fever problems don't happen at immigration — they happen at check-in for the onward flight. Airlines can refuse to board passengers who don't meet the entry rules of their destination, and gate agents apply those rules to whatever your itinerary shows.

A few situations make that more likely:

  • Delays that stretch a connection past 12 hours. A missed connection or overnight rebooking can turn a 9-hour layover into a 14-hour one. If your itinerary is close to the threshold and you already have a certificate, carry it.
  • Separate tickets. On a self-transfer, you may have to clear immigration to collect bags and re-check them — which means you've entered the country.
  • Unclear itineraries. If your booking shows a long gap or multiple stops in risk countries, expect questions.

If you're asked and can't produce a valid certificate where one is required, the possible outcomes at the destination include being refused entry, being quarantined (for up to 6 days), or being vaccinated on site. None of them are how you want to start a trip.

If you already have a certificate

Bring it. It's valid for life, it weighs nothing, and it settles any argument instantly. Keep it with your passport in your hand luggage — not in a checked bag. Lost it? See how to replace a lost or expired yellow fever certificate.

If you don't have one — and your layover is long

You have four real options:

  1. Change the flight. A shorter connection, or a route through a non-risk hub (for example, via the Gulf or Europe), removes the issue entirely.
  2. Get vaccinated at least 10 days before you arrive. The certificate isn't valid until day 10. The vaccine is only available from authorised yellow fever vaccination centres — use Find a Clinic.
  3. Get a medical exemption if you can't have the vaccine. Exemptions aren't guaranteed to be accepted. See our guide to yellow fever vaccine exemptions.
  4. Check the destination's own wording. India and Costa Rica, for example, handle airside transit differently from the 12-hour norm. Our yellow fever certificate requirements guide and the Yellow Fever Certificate page explain how to check.

Should you get the vaccine "just in case"?

Not automatically. A short airside connection carries essentially no yellow fever exposure, and the vaccine isn't risk-free. CDC reports serious adverse events at about 3.8 per 100,000 doses overall, rising to 7.7 per 100,000 in people aged 60 and over, almost entirely in people being vaccinated for the first time. For a young, healthy frequent traveller who regularly routes through African or South American hubs, a lifetime certificate can be worth having. For a first-time traveller over 60 whose only link to yellow fever is a two-hour connection, it often isn't. That's a conversation for a travel clinic, not a decision to make at the gate.

If your trip includes time outside the airport in a risk area — a safari in Kenya, the Amazon, eastern Panama — the question changes completely: then the vaccine is about protecting you, not just satisfying a border rule. See our guides to East Africa safaris and South America.

Quick checklist

  • ✅ Is any stop on your route in a country with yellow fever risk? (Ethiopia, Kenya, Panama and Colombia all are.)
  • ✅ Will you be there more than 12 hours, or leave the airport?
  • ✅ Does your destination use the 12-hour rule — or its own (India, Costa Rica)?
  • ✅ Could a delay push you over 12 hours? If you have a certificate, carry it.
  • ✅ Returning home counts too — check your home country's rule (Australia has one).

Frequently asked questions

Does a 3-hour layover in Addis Ababa mean I need a yellow fever certificate?

Not for destinations that use the 12-hour transit rule, such as South Africa, Thailand, Australia and Tanzania — as long as you stay in the airport. It becomes an issue if the layover is over 12 hours or you leave the airport.

I have a 13-hour overnight layover but I'm not leaving the terminal. Does it count?

For countries using the 12-hour rule, yes. The rule is about time spent in transit at the airport, not about passing through immigration.

Nairobi isn't a yellow fever area. Why would a Nairobi layover matter?

Because destination rules are based on the country you're arriving from, not the city. Kenya has yellow fever risk in parts of the country, so it counts as a risk country for border purposes, even though vaccination is generally not recommended for travel only to Nairobi.

Does connecting through Panama City matter for Costa Rica?

No. Panama isn't on Costa Rica's list of countries it requires a certificate for, and Costa Rica exempts travellers who stay in the international transit area.

Can an airline really refuse to let me board?

Yes. Airlines can deny boarding if you don't meet your destination's entry requirements, and that's where most yellow fever problems surface. Have your certificate in your hand luggage if there's any chance it'll be needed.

Does my home country care where I connected?

Some do. Australia, for example, requires proof of vaccination from travellers over 1 year arriving from risk countries, including after a transit of more than 12 hours.


Sources: CDC Yellow Book – Yellow Fever · NaTHNaC TravelHealthPro – South Africa · NaTHNaC – Thailand · NaTHNaC – Australia · NaTHNaC – Tanzania · NaTHNaC – India · NaTHNaC – Costa Rica · NaTHNaC – Ethiopia · NaTHNaC – Kenya · NaTHNaC – Panama · NaTHNaC – Colombia

This article is for informational purposes only and does not constitute medical advice. Yellow fever entry and transit rules are set by individual countries and can change at short notice — always confirm current requirements with a travel health professional, your airline and the relevant embassy before you travel.

Free checklist tool

Build your vaccine checklist

Loading destination…

Visiting somewhere else too?

This article is for informational purposes only and does not constitute medical advice. Always consult a qualified travel health professional or GP before travel.