The Hagia Sophia in Istanbul is the great Byzantine church completed in 537 for Emperor Justinian. It became a mosque in 1453, a museum in 1934 and an active mosque again in 2020. Today foreign visitors see it from the upper gallery on a separate visitor route that costs €25 per person, while worshippers enter the prayer hall below for free.
This independent guide explains how that visit works in practice: which ticket you need, when the gallery is open, what to wear, what you can and cannot see during the current restoration, and how to fit the Hagia Sophia into a day in Sultanahmet. Compare the tickets and tours below once you know what kind of visit suits you.
The Hagia Sophia at a glance
- Built: 532–537 for Justinian I, by the architects Anthemius of Tralles and Isidore of Miletus.
- Dome: about 31 m across, with its crown 55.6 m (182 ft) above the floor.
- Status: an active mosque, officially the Hagia Sophia Grand Mosque (Ayasofya-i Kebir Cami-i Şerifi).
- Ticket price: €25 per person for foreign visitors, for the upper-gallery route only.
- Opening hours: open daily, roughly 9 am to 7 pm; times change with the season and the prayers, so check on the day.
- Prayer closures: the route pauses around each of the five daily prayers and closes at midday on Friday, about 12:00–14:30.
- Tram: T1 to Sultanahmet, about 2 minutes' walk.
- How long: about 60–90 minutes, up to 2 hours.
- Dress code: women cover their hair and wear clothing that covers most of the body; men wear long trousers and no sleeveless tops.
What to expect in 2026: an active mosque under restoration
The Hagia Sophia is first of all a place of worship. The carpeted ground floor is a prayer hall for worshippers, and tourists do not walk there. Since 15 January 2024 visitors use their own entrance and climb to the upper gallery, from where you look down into the nave and see the famous Byzantine mosaics up close.
The building is also in the middle of its largest restoration in modern times, which started in 2025 and is planned to finish mostly in 2027. In 2026 scaffolding fills much of the nave, and the inside of the main dome is covered by a printed canvas that shows its shape. You will not see the dome itself. The apse mosaic of the Virgin and Child is behind a white curtain. The gallery mosaics, the Marble Door and the views over the prayer hall are still well worth the visit, but it helps to know this before you go.
Hagia Sophia tickets: which visit should you choose?
There are three common ways to experience the Hagia Sophia. Which one suits you depends on how much context you want and how much time you have.
The visitor route ticket
The standard ticket costs €25 and gives access to the upper-gallery route. You can buy it at the ticket booth or online from DEM Museums, the ministry-authorised seller. A free audio guide in 23 languages plays on your own phone through headphones. Read the full details on our Hagia Sophia tickets page.
A guided tour
Licensed guides still lead tours of the Hagia Sophia. Many tours start with a briefing outside, and inside everyone keeps their voices low out of respect for worshippers. Tours and combos from partners usually cost more than the ticket alone, because they include a guide, other sights or easier booking. Check exactly what is included before you book.
The History and Experience Museum
Across Sultanahmet Square, the Hagia Sophia History and Experience Museum tells the building's story with immersive rooms and around 300 objects. It needs a separate €25 ticket; a combined ticket costs about €50.
Hagia Sophia opening hours and prayer times
No official visitor timetable is published. Recent sources give the gallery route as open daily from roughly 9 am to 7 pm, with last entry about an hour before closing. The route pauses around each prayer, and on Friday it closes at midday for the Friday prayer. See opening hours and prices for the details and the best times to go.
Dress code and respect
Because the Hagia Sophia is a working mosque, a modest dress code applies to everyone on the route. Headscarves and body covers are sold at the ticket booth if you forget. Keep your voice down, use headphones for the audio guide and leave the route when staff ask before a prayer. Our page on the dress code and visiting rules has a checklist.
Explore this guide
- The upper gallery visit: the route step by step, from the entrance ramp to the exit.
- Mosaics and highlights: the Deesis, the Empress Zoe and Komnenos mosaics and what you can see today.
- History of the Hagia Sophia: from the first church in 360 to the 2020 reconversion and today's restoration.
- Facts and figures: the dome, the minarets, visitor numbers and curiosities such as Gli the cat.
- Plan your visit: getting there, security, best time and a one-day route through Sultanahmet.
- Things to do nearby: the Blue Mosque, the Basilica Cistern, Topkapı Palace and more, all within walking distance.
Getting to the Hagia Sophia
The Hagia Sophia stands on Sultanahmet Square in Istanbul's old city. The easiest way to get there is the T1 tram to the Sultanahmet stop, about 2 minutes' walk away. The tourist ticket window is opposite the Fountain of Ahmed III, near the Imperial Gate of Topkapı Palace, not at the main gate on Hagia Sophia Square, which is used by worshippers.
Expect a ticket queue and a security check. At busy times the wait can add up to 30–90 minutes, so arrive before opening or come in the late afternoon, and avoid Friday midday.
Book tickets and tours
Istanbul Blue Mosque, Hagia Sophia, Basilica Cistern with Tickets (opens Viator in a new tab)
- 3 hours
- Free cancellation
Istanbul: Blue Mosque & Hagia Sophia Guided Tour with Tickets (opens Viator in a new tab)
- 2.5 hours
- Free cancellation
Istanbul Blue Mosque, Hagia Sophia & Cistern of Theodosius (opens Viator in a new tab)
- 2–3 hours
- Free cancellation
- Special offer
Istanbul Old City Tour: Hagia Sophia, Blue Mosque & Grand Bazaar (opens Viator in a new tab)
- 4 hours
- Free cancellation
Istanbul City Tour with Hagia Sophia and Blue Mosque (opens Viator in a new tab)
- 3–4 hours
- Free cancellation
Istanbul Guided Tour Hagia Sophia, Topkapi, Cistern with Tickets (opens Viator in a new tab)
- 4.3 hours
- Free cancellation
Prices and availability come from Viator. When you book through these links, we may earn a commission at no extra cost to you.