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
- Foreign visitors pay €25 for access to the upper gallery.
- Children under 8 enter free when accompanied by an adult and presenting a valid passport or ID.
- Turkish citizens pay a lower rate for gallery access.
- The Istanbul Museum Pass is not valid.
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:
- At the official ticket office near the Sultan Ahmed III Fountain.
- Online in advance, which is strongly recommended — especially in peak season, when the booth queue is longest.
Opening hours
Hagia Sophia is open every day. Typical visiting hours are:
- Summer, approximately April to October: 08:00 or 09:00 to 19:00 or 19:30.
- Winter, approximately November to March: 09:00 to 17:00 or 19:00.
- Last entry is usually 30 minutes before closing.
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
- Best overall: right at opening, 08:00–09:30, on a weekday.
- Good alternative: late afternoon, after 16:30 or 17:00.
- Times to avoid: Friday midday, and the busiest period between 10:30 and 15:00.
Dress code requirements
Modest clothing is required for everyone. For women:
- A headscarf is mandatory — bring your own.
- Shoulders and upper arms must be covered.
- Knees must be covered, with long trousers, a skirt or a dress.
For men:
- Full-length trousers; shorts are not allowed.
- A shirt or T-shirt with sleeves; no tank tops.
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:
- The enormous central dome.
- Important Byzantine mosaics.
- The expansive nave below.
- Ottoman features such as the mihrab, the minbar and the large calligraphic roundels.
- Scandinavian rune carvings chiselled into the marble by Halfdan.
Most visitors spend 45–90 minutes exploring. Take your time with the architecture and the atmosphere.
Essential practical tips
- Security screening is mandatory — allow extra time.
- Large bags may need to be checked.
- Photography is generally permitted in the tourist areas. Be respectful of worshippers and keep your flash off.
- Combine your visit with the Blue Mosque and the Basilica Cistern for an efficient Sultanahmet day.
- Wear comfortable shoes and stay hydrated.
- Download an offline map or audio guide before you arrive.
A suggested first-time itinerary
- Arrive early and clear security.
- Explore the upper gallery at a relaxed pace.
- Focus on the mosaics, the dome and the overall scale.
- Exit and continue to the Blue Mosque or the Basilica Cistern.
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.

