Hagia Sophia at dusk, its minarets lit and a line of lights strung between two of them

IstanbulVisiting Hagia Sophia: tickets, hours and the gallery

Hagia Sophia is a working mosque and a fifteen-century-old monument at once. Knowing how the two sides of the building work makes the visit calmer.

By Megis Concierge 9 min read

In short

  • Foreign visitors need a ticket for the gallery route: a fee applies for foreign visitors, paid at the booths by the Fountain of Sultan Ahmed III. Worshippers enter the prayer hall free.
  • Hagia Sophia is open every day, from 9 am in winter and 8 am in summer until 7.30 pm. It is busiest around prayer times, above all at Friday midday.
  • The dress code is that of any mosque: shoulders and knees covered for everyone, and a headscarf for women.
  • The best time to visit is at opening time on a weekday. Allow about an hour, and add Topkapı Palace next door for a full morning.

Hagia Sophia tickets are simpler than the internet makes them look. The great hall is a working mosque, free for anyone who comes to pray. Visitors who come to see the building follow a separate route up to the galleries, and that route needs a ticket, with a fee for foreign visitors.

This guide explains how the tickets work, the opening hours and prayer times, what to wear, what you will see in the upper gallery and the best time of day to go. These are the details we check when we plan a morning in the old city, so they are the ones that matter on the day.

How do Hagia Sophia tickets work?

Foreign visitors buy a ticket for the visitor route, which has its own entrance and leads up to the gallery floor. Worshippers enter the prayer hall free, through a separate entrance. The system began on 15 January 2024, when the visitor route opened and the two entrances were divided.

  • Fee: foreign visitors pay for the gallery route; the current fee is shown at the booths. Museum passes are not valid.
  • Where to buy: at the ticket booths near the Fountain of Sultan Ahmed III, between Hagia Sophia and the Imperial Gate of Topkapı Palace. Headscarves are on sale there too.
  • Passes: museum passes are not valid at Hagia Sophia.
  • Online: many websites with Hagia Sophia in their name are resellers. A "skip-the-line" ticket or a guided tour costs more than the booth price. That can be worth it, but read what is included.
At a glanceNovember 2026
Ticket for foreign visitorsA fee applies for the gallery route
WorshippersFree, through the worshippers' entrance
Opening hoursEvery day, 9 am to 7.30 pm in winter, from 8 am in summer; last tickets at 7 pm
FridaysVery busy around the midday prayer
Museum passesNot valid
Time neededAbout an hour

What are Hagia Sophia's opening hours?

Hagia Sophia is open to visitors every day. At the time of writing, the published hours are 9 am to 7.30 pm from October to March and 8 am to 7.30 pm from April to September, with the ticket booths closing at 7 pm.

Because Hagia Sophia is a mosque, the day follows the five daily prayers. The building is at its busiest around prayer times, and on Fridays the midday congregational prayer fills the square. Visitor access can pause for a few hours around it. The two Eids and other religious holidays change the pattern again, so check the hours for your exact date.

Muslim visitors can do both: pray in the great hall at a prayer time through the worshippers' entrance, then return as visitors to see the galleries. Our guide to halal-friendly travel in Türkiye covers prayer times and mosque visits across the country.

What is the dress code for Hagia Sophia?

Dress as you would for any mosque: shoulders and knees covered for everyone, and a headscarf for women. The rules apply to the visitor route as well as the prayer hall.

  • Women: a headscarf, long sleeves or a shawl, and a long skirt or loose trousers. Scarves are sold at the booths, but bringing your own is easier.
  • Men: trousers rather than shorts, and a shirt that covers the shoulders.
  • Children: the same spirit applies, and a light layer is useful in summer.
  • Shoes: if you go down to pray on the carpeted floor of the hall, shoes come off at the door, as in every mosque.

The upper gallery holds Hagia Sophia's great Byzantine mosaics, and the visitor route is built around it. From the entrance, a ramp leads up to the gallery floor. From there you look down into the prayer hall, with its calligraphic roundels and Ottoman additions, before passing through the Marble Door, known as the Gate of Heaven and Hell, into the south gallery.

  • The Deesis mosaic: Christ between Mary and John the Baptist, who plead for humanity on the Day of Judgement. Even damaged, it is the most moving image in the building.
  • The Empress Zoe mosaic: an eleventh-century panel showing the empress and her husband on either side of Christ.
  • The Komnenos mosaic: a twelfth-century panel with the Virgin and Child between the Emperor John II Komnenos and the Empress Irene.
  • The grave marker of Enrico Dandolo: the Doge of Venice who led the Fourth Crusade and died in the city in 1205.
  • Viking runes: carved into the marble parapet in the middle of the south gallery, a small, very human detail most visitors walk past.

The route ends with a ramp down on the north-east side of the building. Audio commentary in 23 languages is available through a QR-code headset system, which keeps the gallery quiet for those at prayer below.

The interior of Hagia Sophia under the great dome, with calligraphic roundels, arcaded galleries and low-hung chandeliers
The great hall under the dome. From the upper gallery you look down on it from above.

When is the best time to visit Hagia Sophia?

The best time to visit Hagia Sophia is at opening time, on a weekday, outside the summer peak. The first hour is quieter, cooler and kinder to photographs.

  • Morning: be at the booths before opening. Groups arrive from mid-morning.
  • Late afternoon: the second-best window, especially in summer, when the light in the galleries turns gold.
  • Avoid Friday midday and the first days of the Eid holidays.
  • Season: November to March, outside the holidays, is the calmest time of year. Our guide to the best time to visit Istanbul covers each month.

Is Hagia Sophia under restoration in 2026?

Yes. A major restoration is under way, and in summer 2026 the work reached the main dome, which is now under a steel structure and a grey protective cover. The authorities have said that Hagia Sophia stays open for worship and visitors throughout. Expect scaffolding in places, and occasional changes to the route.

Hagia Sophia in five dates

Hagia Sophia has been a cathedral, a mosque, a museum and a mosque again. Five dates explain most of what you see:

  1. 537: Emperor Justinian's church is completed, the third on the site, after the Nika riots destroyed its predecessor in 532.
  2. 1453: after the conquest of Constantinople, Sultan Mehmed II converts it into a mosque. Minarets and Ottoman additions follow over the centuries.
  3. 1934: the young Republic turns it into a museum.
  4. 1985: it is inscribed by UNESCO as part of the Historic Areas of Istanbul.
  5. 2020: it reopens for worship as the Hagia Sophia Grand Mosque.

The Hagia Sophia History and Experience Museum

A short walk away, on the Hippodrome, the Hagia Sophia History and Experience Museum tells the building's 1,700-year story in 13 halls, with sound and images in 23 languages. It is a separate attraction with its own ticket, open every day from 9 am to 8 pm, with last tickets at 7 pm. Museum passes are not valid here either.

It works well before the real thing, particularly for children and teenagers, or on a rainy afternoon.

Visiting Hagia Sophia with a private guide

A licensed guide turns the gallery from a row of mosaics into a story: who the figures are, why the Marble Door was there, what the roundels say. Inside a working mosque, a good guide also knows when to speak quietly and when to step outside to explain.

Most first visits pair Hagia Sophia with Topkapı Palace, whose Imperial Gate is just behind it. Our Topkapı Palace guide explains tickets and timing there. Our Historic Peninsula day adds the Blue Mosque, the Cistern and the Grand Bazaar, and our Islamic heritage day is planned around the prayer times. For how to choose a guide, see our guide to private tour guides in Istanbul.

The old city is a maze of one-way streets and pedestrian zones. A car by the hour that drops you at the booths and waits nearby saves a great deal of walking on a hot day. For a wider plan, our Istanbul itinerary for three to five days shows where Hagia Sophia fits.

Arrive early, dress for a mosque and give the galleries time. Hagia Sophia rewards the visitor who looks up slowly.

Checked by the Megis team on 4 November 2026. Opening hours, rules and seasons change; we confirm every detail again when we plan your trip.

Sources

  1. Ministry of Culture and Tourism: museums and sites muze.gov.tr

Questions

How much are Hagia Sophia tickets?

Foreign visitors pay an entrance fee for the visitor route up to the galleries, while worshippers enter the prayer hall free. Museum passes are not valid. Online resellers usually charge more than the booth price, often because a guide or audio guide is included. The current fee is shown at the booths and on the official sales channels.

Can you visit Hagia Sophia for free?

Yes, if you come to pray. Worshippers enter the prayer hall free through their own entrance. The visitor route, which takes you up to the galleries and the Byzantine mosaics, needs a ticket.

Is there an official website for Hagia Sophia tickets?

Tickets for the visitor route are sold at the official booths near the Fountain of Sultan Ahmed III. Many websites with Hagia Sophia in their name are resellers. If you book online, check who is selling the ticket and exactly what it includes.

Can tourists visit the ground floor of Hagia Sophia?

The visitor route leads to the gallery floor, from where you look down into the great prayer hall. The ground floor is kept for worship. Muslim visitors who come at a prayer time can pray there.

How long do you need at Hagia Sophia?

About an hour is enough for the gallery route at a steady pace. With a guide who stops at each mosaic, allow an hour and a half. The separate History and Experience Museum needs another hour.

Is Hagia Sophia open on Fridays?

Yes, but the midday Friday prayer brings large crowds, and access for visitors can pause for a few hours around it. On a Friday, go first thing in the morning or in the late afternoon.

Is Hagia Sophia the same as the Blue Mosque?

No. Hagia Sophia and the Blue Mosque are two different buildings that face each other across Sultanahmet Square, a few minutes' walk apart. Hagia Sophia was completed in 537 as Emperor Justinian's church and became a mosque in 1453. The Blue Mosque, officially the Sultan Ahmed Mosque, was built in the early seventeenth century under Sultan Ahmed I and takes its popular name from the blue tiles inside. Most visitors see both in the same morning, and our Blue Mosque guide covers its visiting rules.

Can you wear shorts in Hagia Sophia?

No. Shorts are not suitable for Hagia Sophia, for men or women, because it is a working mosque and the dress code applies on the visitor route as well as in the prayer hall. Knees and shoulders should be covered, and women also need a headscarf. Light trousers or a long skirt are the simplest choice in summer, and headscarves are sold at the ticket booths. Our guide to what to wear in Istanbul covers mosque visits across the city.

Can Christians go inside Hagia Sophia?

Yes. Hagia Sophia is open to visitors of every faith, Christians included, through the ticketed visitor route that leads up to the galleries and the Byzantine mosaics, among them the Deesis panel of Christ, Mary and John the Baptist. The ground floor is kept for worship, so visitors who have not come to pray look down into the great hall from the gallery. Dress as for any mosque, keep your voice low for those at prayer below, and avoid Friday midday.