Around the MetroBlog
Blog · Istanbul

Hagia Sophia: Tram, Tickets, Dress Code and Tips

Updated 27 October 2026
Hagia Sophia
Nearest station: Sultanahmet
Open in Around the Metro

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.

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:

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:

See what else is near this stop on Hagia Sophia on Around the Metro, or browse the Istanbul transport map.

Questions people ask

How do I get to Hagia Sophia?

Take the T1 tram to Sultanahmet, a couple of minutes' walk away. Gülhane, one stop on, is also close.

Do tourists have to pay to enter Hagia Sophia?

Since 2024 foreign visitors pay an entrance fee and use a separate route, mainly through the upper galleries, while worshippers enter free. Buy only from the official ticket point and check current arrangements before you go.

What is the dress code for Hagia Sophia?

Women should cover their hair, shoulders and legs, and men should cover their knees. Bring a scarf in case none are available at the entrance.

Is Hagia Sophia closed during prayer times?

Visitor access pauses during the daily prayers, and the Friday midday prayer usually means a longer closure. Plan your visit around them.

How long should I spend at Hagia Sophia?

About an hour inside, plus queuing time. Early morning is the best time to avoid long lines.

Hagia Sophia
Nearest station: Sultanahmet
Open in Around the Metro