Daily · 09:00 – 19:30
A cat resting in the upper gallery beside the marble balustrade.
All guides

How to Visit Hagia Sophia: A Complete First-Time Guide

Tickets, hours, dress, the entrance, what to expect in the gallery and an itinerary for the rest of the Sultanahmet day.

Planning · Last reviewed 6 September 2026

Visiting Hagia Sophia for the first time is one of the highlights of any trip to Istanbul. This extraordinary building has served as a Byzantine cathedral, an Ottoman mosque, a museum and once again a working mosque. This guide covers tickets, opening hours, the dress code, the best times to visit, entrance information and the practical tips that matter.

Understanding Hagia Sophia today

Hagia Sophia is an active mosque. Foreign tourists visit the upper gallery, the main sightseeing area, which offers views of the vast dome and the famous Byzantine mosaics. The ground-floor prayer hall is primarily reserved for worship. Understanding this separation is the single most important thing to know before visiting.

Tickets and entrance information

Your ticket covers the upper-gallery route and often includes a digital audio guide. It does not automatically include the separate Hagia Sophia History and Experience Museum.

Where to buy:

Book your ticket online

Opening hours

Hagia Sophia is open every day. Typical visiting hours are:

Because it is a working mosque, Hagia Sophia closes to tourists during the five daily prayers, typically for 30–45 minutes each. The longest closure is on Friday, from approximately 12:00–12:30 to 14:00–14:30, for the congregational prayer. Always check the current Istanbul prayer schedule on the day of your visit.

Best time to visit

Dress code requirements

Modest clothing is required for everyone. For women:

For men:

Shoes must be removed in carpeted areas. Wear footwear that is easy to take off, and consider bringing socks.

How to get there

Hagia Sophia sits in the heart of Sultanahmet Square, on the historic peninsula. Take the T1 tram and get off at Sultanahmet or Gülhane, then walk through the square, which is closed to traffic. It is within easy walking distance of the Blue Mosque, the Basilica Cistern and Topkapı Palace. The tourist entrance is on the northeast side, near the main entrance to Topkapı Palace and in front of the Sultan Ahmed III Fountain, separate from the main prayer entrance.

What to expect inside the upper gallery

From the upper gallery you can see:

Most visitors spend 45–90 minutes exploring. Take your time with the architecture and the atmosphere.

Essential practical tips

A suggested first-time itinerary

Visiting Hagia Sophia is straightforward when you are prepared. Buy your tickets in advance if you can, follow the dress code, time your visit around prayer hours and arrive early.

Ready to choose a date?

Availability for the Visitor Gallery is shown per date, and the conditions on this page apply to every one of them.

View tickets
The monumentHagia Sophia Upper Gallery: What You Can See Inside