Istanbul

TripAzur / Travel guides

Visiting Hagia Sophia: tickets, upper gallery and entry rules

4 min read

How a visit to Hagia Sophia works now: the free ground-floor prayer hall, the paid upper-gallery route for sightseeing visitors since January 2024, the separate entrance, prayer-time closures, dress code and how to get there.

Two ways in

Hagia Sophia has been a mosque again since 2020. Since January 2024, visits work in two tiers: the ground-floor prayer hall is free and open for worship, while sightseeing visitors from abroad buy a ticket for a separate route through the upper gallery, where the famous Byzantine mosaics are.

The upper-gallery route

Sightseeing visitors use their own entrance on the Topkapı Palace side of the building, then climb historic ramps to the upper gallery and follow a one-way loop past the mosaics, including the Deësis, before leaving by the south-west vestibule. Expect a security check even with a ticket bought online.

Prayer times and dress code

As a working mosque, Hagia Sophia closes to visitors around prayer times, most notably at Friday midday prayer, so avoid Friday late morning. Everyone should cover shoulders and knees; women cover their hair — scarves are sold near the entrance — and shoes come off in carpeted prayer areas.

When to go and getting there

Go shortly after opening or in the last hours before closing for smaller crowds; allow 45–90 minutes. Take the T1 tram to the Sultanahmet stop — the Blue Mosque, the Basilica Cistern and Topkapı Palace are all a short walk away, so you can plan a full day in the old city.

Quick answers

Is Hagia Sophia free to enter?

The ground-floor prayer hall is free for worship. Sightseeing visitors from abroad need a ticket for the upper-gallery route, where the Byzantine mosaics are.

When is Hagia Sophia closed to visitors?

Around prayer times, most notably Friday midday prayer — avoid Friday late morning.

What should I wear to Hagia Sophia?

Cover shoulders and knees; women cover their hair. Scarves are sold near the entrance.

PDF guide · 11 pages · 2026–27 edition

Istanbul: the practical first-timer's guide

Entry rules and the official e-Visa site, IST or SAW, the Istanbulkart and ferries, where to stay, the old city and the Bosphorus, mosque etiquette, 3- and 5-day plans and checklists.

Get the guide · $7

Flights to Istanbul

Book what this guide covers

Everything else a trip needs — from the airport to the last day — from trusted travel companies.

Travel smarter