A guide with an orange TourQuaz umbrella leading a group next to Hagia Sophia
Sightseeing Guide

Visiting Hagia Sophia: Tickets, Dress Code & Tips

Visiting Hagia Sophia is not the same experience it was a few years ago, and a lot of the advice online has not caught up. The building is a working mosque again, foreign visitors now follow their own ticketed route up to the galleries, and the doors close to visitors around every prayer. Plan it well and you get a calm hour under that dome; plan it badly and you spend it in a queue in the sun.

We take guests into Hagia Sophia almost every day on our Istanbul Old City Tour, so this guide is the practical version: how the visitor route works, what to wear, when to go, what to look for once you are inside, and how to fit it around the rest of Sultanahmet.

Quick Answer: How Does a Hagia Sophia Visit Work Now?

Here is the short version before the details.

QuestionShort answerWhat to do
Who uses the visitor route?Foreign visitors, on a separate paid route to the upper galleryBuy through the official channels only
Can I walk on the main floor?No, the ground floor is the prayer area for worshippersEnjoy the nave from the gallery above
When is it closed to visitors?Around each of the five daily prayers, and longer on Friday middayPlan your visit between prayers
What should I wear?Shoulders and knees covered, headscarf for womenPack a scarf and long trousers or a skirt
When is it quietest?The first hour after opening and late afternoonAvoid mid-morning when groups arrive

Our verdict: go early, dress for a mosque, check the day's prayer times, and allow at least an hour inside.

How Visiting Hagia Sophia Works Today

Hagia Sophia and its minarets at dusk in Sultanahmet
Hagia Sophia at dusk.

Hagia Sophia was completed in 537 under Emperor Justinian as the great cathedral of Constantinople. It became an imperial mosque after 1453, a museum in the twentieth century, and a mosque again in 2020. Since 15 January 2024 the building has been split into two experiences.

The ground floor is the prayer area. Worshippers enter it for free, and Turkish citizens can also enter it as visitors without a ticket. The upper gallery route is for foreign visitors. You enter through a separate visitor entrance, pay for a ticket, and walk a set route that climbs to the galleries where most of the Byzantine mosaics are. From there you look down into the nave.

Think of it as visiting a working mosque, not a museum with prayers in it. Staff steer you along the route and close the doors when prayer time comes.

Tickets, Queues and Opening Hours

Hagia Sophia tickets for the visitor route are sold at the official ticket office by the visitor entrance and through the official online channel. We do not print the fee here because it has changed several times and will likely change again; check the official channel on the week you travel. Two things to know:

  • The Museum Pass does not cover it. Hagia Sophia has not been part of the Museum Pass Istanbul. Our museum pass and entrance fees guide explains what the pass does cover.
  • Ignore street sellers. People offering "skip the line" tickets outside are not an official channel. Buy at the office or online.

Hagia Sophia opening hours for visitors usually run from morning to early evening, with longer hours in summer, but the real timetable is the prayer schedule. The line is usually the bigger time cost: from about mid-morning, when group buses arrive, it can stretch well across the square.

If you are on a guided tour, the guide handles the timing but the ticket is still yours to pay. On our Old City day the Hagia Sophia entrance is payable on-site and is not included in any option.

Hagia Sophia Prayer Times and Fridays

This is the part that catches people out. The visitor route closes before each of the five daily prayers and reopens once the area is cleared, so you lose roughly an hour around each one. The prayer times move through the year with sunrise and sunset, so check them for your exact date. Any prayer-time app or the official religious affairs website will show them for Istanbul.

Fridays are different. The midday Friday prayer is the main congregational prayer of the week, and Hagia Sophia closes to visitors for a longer stretch around it, typically from late morning until the early afternoon. The square is also at its most crowded then. If your only free day is a Friday, go first thing in the morning or later in the afternoon, and keep the middle of the day for the Basilica Cistern or lunch.

During Ramadan and the religious holidays, expect bigger crowds of worshippers and give yourself more slack.

Hagia Sophia Dress Code

The Hagia Sophia dress code is the same as for any mosque in Istanbul:

  • Women: hair covered with a scarf, shoulders and arms covered, and a long skirt or loose trousers. Tight leggings on their own are often stopped.
  • Men: long trousers rather than shorts, and shoulders covered. No sleeveless tops.
  • Shoes: they come off in carpeted prayer areas. On the visitor route, follow what the staff tell you on the day. Slip-on shoes and clean socks make life easier.
  • Bags: small is better. Large luggage is not allowed in, and security screens every bag.

Wraps are sometimes available at the entrance, but do not count on it. A light scarf in your day bag solves everything.

Deësis mosaic of Christ in Hagia Sophia, Istanbul
The Deësis mosaic in the upper gallery.

The Hagia Sophia upper gallery is where the Byzantine mosaics are, so in some ways foreign visitors get the better half of the building. Exactly which sections are open can change, but these are the things to look for.

The mosaics

  • The Deesis: in the south gallery, a thirteenth-century panel of Christ between the Virgin Mary and John the Baptist. Much of the lower part is lost, but the faces are among the finest Byzantine art anywhere.
  • The Empress Zoe panel: Christ enthroned between Empress Zoe and her third husband, Constantine IX. Look closely and you can see that the emperor's face and name were altered, a quiet record of palace politics.
  • The Komnenos panel: the Virgin and Child between Emperor John II Komnenos and Empress Irene.
  • The apse mosaic: the Virgin and Child high in the apse, seen from the galleries across the nave. During prayers some figurative images are veiled, so what you see can depend on timing.

The view down into the nave

From the gallery you look down on what worshippers see at floor level. Look for the Omphalion, the circle of coloured marble in the floor where Byzantine emperors were crowned. Find the mihrab, which is set slightly off-centre in the apse because it points towards Mecca rather than following the church's axis, and the tall marble minbar beside it, added in the sixteenth century. The huge round calligraphy medallions, added in the nineteenth century, are best appreciated from this height, and two large marble urns stand in the corners of the nave.

Small details worth hunting for

  • The Imperial Gate: the central doorway into the nave, once reserved for the emperor, with a mosaic above it of an emperor kneeling before Christ. Whether it is on your route depends on how the visitor path runs that day, so ask.
  • Viking graffiti: runes scratched into a marble parapet in the gallery, usually read as the name Halvdan.
  • The Empress's Loge: the central spot in the west gallery, marked by a disc of green marble, where the empress watched the services.

Allow at least an hour; most guests want a second look at the Deesis.

Best Time to Visit Hagia Sophia

The apse mosaic of the Virgin and Child in Hagia Sophia
The apse mosaic of the Virgin and Child.

The first hour after opening is the calmest of the day, and late afternoon, after the afternoon (asr) prayer, is the next best. Mid-morning is the worst: that is when tour groups arrive and the line grows fastest.

Spring and autumn are the most comfortable seasons. In summer the square has little shade, so carry water and a hat. Winter brings the shortest lines. Weekdays are easier than weekends, when local visitors add to the crowds.

Guided or Self-Guided?

You can visit Hagia Sophia on your own with no trouble; the route is signposted. What a guide adds is the story: why the dome seemed to float, why the mihrab sits at an angle, who is in each mosaic. A guide also handles the timing around prayers, which is the hardest part to get right alone. If you are short on time and mainly want the story of the old city, our two-hour Istanbul Historic Walking Tour covers the Column of Constantine, Divan Yolu and the Hippodrome from the outside, with no tickets needed, and you can visit Hagia Sophia on your own afterwards.

Combining Hagia Sophia with the Rest of Sultanahmet

Hagia Sophia sits a two-minute walk from almost everything else in the old city, so it is easy to combine.

  • Blue Mosque: directly across the gardens, free to enter and also closed to visitors around prayers. Visit both in the same gap between prayers if you can, since the dress code is identical.
  • Basilica Cistern: a few minutes' walk away, underground and cool. It is the perfect place to spend a prayer closure or a hot midday.
  • Topkapı Palace: just behind Hagia Sophia. Give it at least two hours, more with the Harem, and note that it is closed on Tuesdays.

For the order we use to walk all of this in one day, see our Istanbul Old City guide. If you have more days, our 3 days in Istanbul itinerary spreads the sights out. Staying in Sultanahmet puts you close enough to be first in line at opening; our Taksim vs Sultanahmet guide weighs the pros and cons. For a full week with a guided Old City day, a Bosphorus cruise, the Princes' Islands and Bursa, look at the 7-day Grand Istanbul Discovery tour.

Istanbul Historic Walking Tour: Old City, 2 HoursIstanbul Historic Walking Tour: Old City, 2 Hours2 Hoursfrom $129See the Tour →

Frequently Asked Questions

Is Hagia Sophia free to visit?

It is free for worshippers and for Turkish citizens entering the ground-floor prayer area. Foreign visitors use a separate paid route to the upper gallery, introduced on 15 January 2024, so check the current ticket fee on the official channel before you go.

Can tourists still go inside Hagia Sophia?

Yes. Tourists enter through the visitor entrance and walk the upper gallery route, which includes most of the Byzantine mosaics and a full view down into the nave. The ground floor is kept for prayer.

How long do I need for Hagia Sophia?

Plan about an hour inside, plus queuing time. In the first hour after opening the wait is usually short; from mid-morning it can be considerably longer.

Is Hagia Sophia open on Fridays?

Yes, but it closes to visitors for a longer period around the Friday midday prayer, roughly from late morning to early afternoon. Visit early in the morning or later in the afternoon on a Friday.

What happens if I arrive during prayer time?

The visitor route closes before each prayer and reopens once it is over, usually after about an hour. Use the gap for the Basilica Cistern, a tea in the gardens or an early lunch, then come back.

Is the Hagia Sophia ticket included in tours?

On our Old City tour the Hagia Sophia entrance is not included in any option and is paid on-site, so you always pay the official price at the gate. The Museum Pass Istanbul does not cover it either.

Want someone to handle the timing, the queue and the story?

Join our Istanbul Old City Tour with a licensed guide, or message us with your dates and we will plan your Hagia Sophia visit around the prayer times.