Hagia Sophia has dominated the Istanbul skyline for nearly fifteen centuries. Built as a cathedral under the Byzantine emperor Justinian and completed in 537, it became a mosque after the Ottoman conquest in 1453, a museum in 1934 and a mosque again in 2020. Visiting Hagia Sophia today means seeing a working place of worship, so a little planning around prayer times and dress goes a long way.
Why visit Hagia Sophia
The main draw is the dome, which seems to float above a ring of windows, and the sheer volume of the interior. For around a thousand years it was one of the largest enclosed spaces in the world, and its design influenced church and mosque architecture for centuries, including the Ottoman mosques that now surround it.
Layers of history are visible everywhere: Byzantine mosaics alongside huge Ottoman calligraphy roundels, a marble mihrab and minbar added after the conversion to a mosque, and four minarets built at different times outside.
Getting to Hagia Sophia by tram
The T1 tram stops at Sultanahmet, a couple of minutes' walk from the building. The stop is on the main street of the old city, with Hagia Sophia on one side and the Blue Mosque across the park. Gülhane, the next stop towards Eminönü, is a similar short walk.
- The T1 connects with the Marmaray rail line at Sirkeci and with ferries at Eminönü and Kabataş.
- Use an Istanbulkart for trams, metro, buses and ferries.
- Sultanahmet Square between Hagia Sophia and the Blue Mosque is pedestrianised, so the last stretch is on foot whichever way you arrive.
Hagia Sophia tickets and visiting rules
Hagia Sophia is a mosque, and the rules for visitors changed in 2024. Worshippers enter the ground floor free, while foreign visitors now pay an entrance fee and follow a separate route, mainly through the upper galleries, from where you look down into the main space. Buy tickets only at the official ticket point or through the official channel rather than from people offering tickets or tours outside. Prices and arrangements may change again, so check the latest information before you go.
Some practical rules apply:
- Prayer times: visitor access is paused during the five daily prayers, and the Friday midday prayer usually means a longer closure. Plan to arrive well clear of these times.
- Dress code: women should cover their hair, shoulders and legs, and men should wear trousers or long shorts that cover the knee. Scarves are often available at the entrance, but bring your own to be safe.
- Behaviour: keep voices low, and do not photograph people who are praying.
What to look for inside
The dome and the seraphim
Look up at the four pendentives that carry the dome, each decorated with a winged seraph. The ring of windows at the base of the dome is what gives it the floating effect.
The Deesis mosaic
In the upper gallery, this thirteenth-century mosaic of Christ with the Virgin Mary and John the Baptist is considered one of the finest Byzantine works anywhere, with remarkably expressive faces.
The calligraphy roundels
The giant Ottoman roundels bearing the names of God, the Prophet Muhammad and the first caliphs are among the largest pieces of Islamic calligraphy in the world.
Old graffiti
Look carefully at the gallery balustrades for centuries-old carved graffiti, including Norse runes said to have been left by a Viking guard.
Best time to visit and how long
Early morning, soon after the building opens to visitors, is the best time to avoid long queues. Midday and the hour around each prayer time are the most difficult. Weekdays outside the summer peak are calmer, and winter is the quietest season overall.
Allow about an hour inside, plus time in the queue. Combine it with the Blue Mosque and the Basilica Cistern for a full morning in Sultanahmet.
Nearby on the same stop
Sultanahmet is Istanbul's densest cluster of historic sights:
- Blue Mosque: across the square, with its six minarets and blue-tiled interior.
- Basilica Cistern: a Byzantine underground reservoir a few minutes' walk from the tram stop.
- Topkapı Palace: behind Hagia Sophia through the Imperial Gate.
- The Hippodrome: the long square beside the Blue Mosque with ancient obelisks.
See what else is near this stop on Hagia Sophia on Around the Metro, or browse the Istanbul transport map.