Hagia Sophia visitor guide
How to visit Hagia Sophia in Istanbul, with the current visitor route, ways to see it, tram access, the quietest times, dress code and what to look for.
- City:Istanbul, Türkiye
- Theme:Palaces & history, Temples & churches, Architecture
- Time zone: Europe/Istanbul
- View on map
Overview
Hagia Sophia, Ayasofya in Turkish, is the building that taught the world how to put a great dome over a great space. The emperor Justinian ordered it in 532 after riots burned the previous church on the site, and his architects, Anthemius of Tralles and Isidore of Miletus, finished it in under six years. It was inaugurated in 537. The dome, about 31 metres across and seeming to float on a ring of windows, partly collapsed after earthquakes and was rebuilt slightly higher in 562. For nearly a thousand years this was the largest church in Christendom and the stage for Byzantine coronations.
When the Ottomans took Constantinople in 1453, Mehmed II converted it into a mosque. Minarets, a mihrab and, later, the enormous calligraphic roundels were added, and its design shaped every great Ottoman mosque that followed. In 1935 the Turkish Republic opened it as a museum. In 2020 it became a working mosque again.
That history is the reason to go: inside one building you see gold Byzantine mosaics of Christ, the Virgin and emperors alongside Islamic calligraphy, under the same sixth-century dome.
Ways to visit
Location
How to get there
Hagia Sophia stands on Sultanahmet Square in the old city. The T1 tram stops at Sultanahmet, about five minutes' walk away; Gülhane, one stop north, is also close. From Taksim, take the funicular down to Kabataş and the tram from there. From the Asian side, take a ferry to Eminönü and the tram or a 15-minute uphill walk, or the Marmaray train to Sirkeci.
The square is pedestrianised. Taxis and tour buses drop off on the surrounding streets.
Best time & crowds
This is one of the most visited buildings in Türkiye, and security checks and ticket queues can be long from mid-morning, especially in summer and on days when cruise ships are in port. Arrive at opening time or come in the late afternoon. Winter weekdays are the calmest.
Because it is a working mosque, the visitor route is affected by prayer times. Expect the longest interruption around the Friday midday prayer, and avoid Friday mornings if you can. Opening hours for visitors are set by the site's management and have changed since the new system began, so check for the current times rather than relying on older guides.
A major restoration programme began in 2025, focused on strengthening the dome against earthquakes. Scaffolding or screened-off areas may affect what you can see, inside and out.
Tips
- Dress for a mosque: shoulders and knees covered for everyone, and a headscarf for women. Bring your own scarf; coverings are sold at the entrance if you forget.
- In the gallery, look for the Deësis mosaic, a 13th-century panel of Christ with the Virgin and John the Baptist, widely considered the finest Byzantine mosaic in the building.
- Further along are two imperial panels: the Empress Zoe with her husband, and John II Komnenos with the Empress Irene, each flanking a holy figure.
- From the gallery's west end you look straight down the nave to the apse, where a mosaic of the Virgin and Child sits above the mihrab.
- Look for the marble balustrade scratched with Norse runes, left by a member of the emperor's Varangian Guard.
- Outside, the sultans' tombs in the garden on the south side are a separate, usually quiet visit.
- Buy tickets only from the official ticket office or reputable sellers. Be wary of people offering to "skip the line" on the square.
- The Blue Mosque is directly opposite and free; the Basilica Cistern is across the tram tracks. Both fit easily into the same morning.
More to see in Istanbul
Istanbul travel guideHagia Sophia: frequently asked questions
It has been a functioning mosque since 2020. Before that it was a museum from 1935, a mosque from 1453, and a church for the nine centuries before that.
Yes. Since January 2024 foreign visitors pay an entrance fee for the visitor route. Prices have risen since, so check the current fee before you go. Entry for worship remains free.
Not on a tourist ticket. The visitor route covers the upper gallery, which overlooks the nave. The ground floor is kept for prayer.
Yes. The most important figurative mosaics are in the upper gallery, on the visitor route. Some mosaics facing the prayer hall are veiled during prayers.
About an hour including the security check, longer with a guide or in peak-season queues.
It does not have a weekly closing day in the way museums do, but access for visitors pauses around prayers, most noticeably on Fridays. Check current hours before visiting.