How to Get to Hagia Sophia
Getting to Hagia Sophia is the easy part of the visit: it stands on the first hill of the old city, in Sultanahmet, and the T1 tram stops a few minutes' walk away. The part visitors get wrong is the last hundred metres. The main west door that every photo shows is now the worshippers' entrance; paying visitors use a separate gate on the Topkapı side of the building.

Hagia Sophia by T1 tram
The T1 line runs from Kabataş on the Bosphorus to Bağcılar in the west, through Tophane, Karaköy, Eminönü and Sirkeci, and has a stop called Sultanahmet beside the park between the two great mosques. From the platform Hagia Sophia is the domed building to the north-east, about five minutes on foot. The next stop towards Kabataş, Gülhane, is equally close to the visitor gate if you walk up the slope past the Topkapı walls.
West of Sultanahmet the tram runs along Divanyolu, the old imperial avenue, towards Çemberlitaş and Beyazıt, which makes it the easy link from the Grand Bazaar too. Pay with an IstanbulKart, the rechargeable card used on trams, metro, ferries and buses; machines at the main stops sell and top it up. Tap once on entering.
Routes to Hagia Sophia from other districts
| From | Route | Get off at |
| Taksim | F1 funicular down to Kabataş, then T1 tram | Sultanahmet or Gülhane |
| Galata and Karaköy | T1 tram westbound across the Galata Bridge | Sultanahmet |
| Galataport cruise terminal | T1 from Tophane westbound | Sultanahmet |
| Kadıköy or Üsküdar | Ferry to Eminönü, then T1 or walk uphill 15 to 20 minutes | Sultanahmet |
| Marmaray line | Train to Sirkeci, then one stop on T1 or a short walk | Gülhane or Sultanahmet |
| Grand Bazaar | T1 eastbound from Beyazıt or Çemberlitaş, or walk along Divanyolu | Sultanahmet |
The ferry from the Asian side is the most pleasant of these: the boat lands at Eminönü under the walls of the old city, and the walk up through Sirkeci passes the gardens below Topkapı.
From the airports to Hagia Sophia
Both airports are far from Sultanahmet. Havaist coaches from Istanbul Airport (IST) and Havabus coaches from Sabiha Gökçen (SAW) run into the city; check the current lines at the airport desk, because the routes and the last coach of the night change. From SAW many travellers ride to Taksim and continue by funicular and tram. A taxi to the old city is the simple option with luggage, but allow time for traffic on the bridges and motorways.
If you land in the morning and want to see Hagia Sophia the same day, leave your bags at the hotel first: large luggage complicates the security check at the gate and the long ramp up to the gallery.
| Airport | Public option | Simple option |
| Istanbul Airport (IST) | Havaist coach towards the old city | Taxi, longest in rush hour |
| Sabiha Gökçen (SAW) | Havabus to Taksim, then F1 and T1 | Taxi across the Bosphorus |
Finding the Hagia Sophia visitor entrance
- From the Sultanahmet tram stop, walk to the main square between the two mosques.
- Do not queue at the main west door; that line is for worshippers and Turkish citizens.
- Keep Hagia Sophia on your left and follow its walls towards Topkapı Palace onto Bab-ı Hümayun Caddesi.
- The ticket booth is across from the Sultan Ahmed III Fountain; the temporary visitor gate faces it.
Signs on the square point visitors to the gate; once a permanent entrance opens, follow the new signs.

Landmarks on the walk to Hagia Sophia
- The Hippodrome - today's Sultanahmet Square, with the Egyptian obelisk and the Serpent Column, where the Nika revolt of 532 began.
- The German Fountain - the domed fountain at the north end of the square, a gift from Kaiser Wilhelm II.
- Sultanahmet Park - the gardens between Hagia Sophia and the Blue Mosque, with the classic photo of both.
- The Sultan Ahmed III Fountain - an 18th-century fountain at the gate of Topkapı, and the meeting point for Hagia Sophia visitors.
- The Imperial Gate of Topkapı - the palace's outer gate, a few steps beyond the fountain.
Hagia Sophia access for wheelchair users
The visitor route climbs a ramp and includes stairs, and the operator states it is not suitable for disabled visitors. Instead they are directed, with a ticket, to the Turkish Citizen Entrance at the main gate, which opens at ground level. The tram is low-floor at most stops, but the cobbled streets and slopes around Sultanahmet are uneven. A taxi to the square avoids the worst of them.
From Hagia Sophia to your next stop
| Next stop | How | Time |
| Basilica Cistern | Walk across the tram line | 3 minutes |
| Blue Mosque | Walk across Sultanahmet Park | 5 minutes |
| Topkapı Palace | Walk up Bab-ı Hümayun Caddesi | 5 minutes to the gate |
| Grand Bazaar | T1 west to Beyazıt or walk Divanyolu | 15 to 20 minutes |
| Eminönü ferries | T1 east or walk down through Sirkeci | 15 minutes |
Taking a taxi to Hagia Sophia
Taxis can drop you at the edge of the pedestrian area around the square, close to the tram line on Divanyolu or by the Topkapı side. Ask for the Sultan Ahmed III Fountain or Topkapı's Imperial Gate to arrive near the visitor entrance. Traffic in the old city is slow in the daytime, and the last few hundred metres are often quicker on foot than in a car. Agree that the meter is running before you set off.
- Say: "Sultanahmet, Topkapı Sarayı kapısı" for the palace gate by the visitor entrance.
- Or show the address: Ayasofya Meydanı No:1, Fatih.
- Avoid rush hours on the bridges if coming from the Asian side.
Walking to Hagia Sophia from nearby hotels
Most hotels in Sultanahmet, Cankurtaran and Sirkeci are within a 5 to 15 minute walk, and walking is often faster than the tram for these short distances. From Cankurtaran, below the Blue Mosque, the streets climb steeply; from Sirkeci you walk up Alemdar Caddesi past Gülhane Park. From Beyoğlu on the far side of the Golden Horn, crossing the Galata Bridge on foot and climbing through Eminönü takes much longer but is one of the classic walks of the city.
| Area | On foot to the visitor gate | Terrain |
| Sultanahmet | 5 minutes | Flat |
| Cankurtaran | 10 minutes | Uphill |
| Sirkeci | 10 to 15 minutes | Uphill along Alemdar Caddesi |
| Beyazıt | 20 minutes | Flat along Divanyolu |
| Karaköy | 35 to 40 minutes | Bridge, then uphill |
Arriving at Hagia Sophia from a cruise ship
Cruise ships dock at Galataport in Karaköy, on the Bosphorus shore across the Golden Horn from the old city. The T1 tram stops at Tophane, next to the terminal; ride it westbound across the Galata Bridge and through Eminönü and Sirkeci to Sultanahmet, around 20 minutes. Many ship passengers arrive in Sultanahmet between 10:00 and 12:00, which is one reason the late-morning queues are long in the cruise season. If your ship docks early, go straight to Hagia Sophia and keep the shopping for later.
- Tram stop: Tophane, by Galataport.
- Direction: westbound towards Bağcılar.
- Get off: Sultanahmet.
The two doors of Hagia Sophia
| Door | Where | Who uses it |
| Main west portal | Facing Sultanahmet Square and the park | Worshippers, Turkish citizens, visitors with disabilities with a ticket |
| Temporary visitor gate | Opposite the Sultan Ahmed III Fountain | Paying foreign visitors |
| North-east ramp | Towards the square and the tombs | Exit for the gallery route |
