Visiting Istanbul without passing through Hagia Sophia would be like going to Rome and skipping the Colosseum.
Located in the beating heart of the city in Sultanahmet Square, Hagia Sophia is more than just a tourist attraction: it is a journey through history of more than 1,500 years.
Built between A.D. 532 and 537 at the behest of Emperor Justinian, it was initially a Christian basilica, then turned into a mosque with the arrival of the Ottomans, became a museum in 1935 and finally converted back into a mosque in 2020.
Today it remains open to visitors outside prayer times and welcomes millions of people each year.
Its location is strategic: Hagia Sophia is located in a completely pedestrian area, surrounded by some of Istanbul’s most iconic sites, such as the Blue Mosque and Topkapi Palace.
This means it is easy to get to by any means, but be prepared to walk a few minutes: no vehicles arrive directly in front of the entrance.
Whether you are planning a visit on your own or with a guide, be sure to check the schedule and prepare a little in advance.
In the next few paragraphs I will explain how to get to Hagia Sophia by public transportation, whether by foot, bus, streetcar, or car or cab, with clear and practical directions.

The best-selling
Hagia Sophia: Skip-the-line ticket
Avoid the ticket line and enter Istanbul’s most impressive mosque
Secure payment
Instant confirmation
Mobile ticket
How to get to Hagia Sofia Istanbul
Reaching Hagia Sophia on foot
If you are already in the historic center of Istanbul, walking to Hagia Sophia is one of the best choices.
Not only do you avoid traffic and waiting, but you also enjoy an authentic taste of the city, with its sounds, smells and architectural details.
The mosque is located in a completely pedestrian zone in the Sultanahmet district. No buses, streetcars or cabs can stop in front of the entrance-you’ll walk the last few meters anyway.
But don’t worry: the walk will be part of the experience.
Here are the most common walking routes.
From Topkapi Palace
If you are already inside the Topkapi Palace complex, Hagia Sophia is literally a stone’s throw away. Exiting the main gate of the palace, you will find yourself directly in Sultanahmet Square, where the majestic dome of the mosque stands out.
Walking time: 5 minutes on foot
You can stroll leisurely through the gardens, perhaps stop for a few minutes for a panoramic photo, and then enter the courtyard of Hagia Sophia directly.

Guided Tour
Topkapi Palace, Hagia Sophia and Basilica Cistern
With this combination ticket you can explore three of Istanbul’s most fascinating attractions: the Hagia Sophia Mosque, the Cistern Basilica and Topkapi Palace.
Secure payment
Instant confirmation
Mobile ticket
From the Grand Bazaar
Starting from the Grand Bazaar gives you a beautiful urban route. Just exit on the south side, take Divan Yolu Caddesi and then continue along Alemdar Caddesi, past historic bookstores, cafes, tea and spice stores. It is a very touristy but also fascinating stretch.
Walking time: 15-20 minutes
Along the way you will pass by other interesting places, such as the Beyazıt Mosque or the Basilica Cistern. If you like to discover the city at a slow pace, this is an ideal option.
From Marmaray Sirkeci Station
If you arrive on the Marmaray line (which connects the European and Asian sides of Istanbul under the Bosphorus), get off at Sirkeci, a strategic junction. From there, cross nearby Gülhane Parkı, a green oasis beloved by locals.
Travel time: about 15 minutes
This route takes you to a quieter and more relaxed environment, away from the tourist hustle and bustle. In spring it is a wonder: tulips in bloom and views of the Topkapi Tower of Justice.
From Vezneciler Station (M2 metro)
If you are on the green M2 line, you can get off at Vezneciler and reach Hagia Sophia by a slightly longer but interesting walk. The route passes through Laleli, then follows Ordu Caddesi and finally Divan Yolu, one of the oldest streets in the city.
Walking time: about 30 minutes
On the way you will be able to see the Şehzade Mosque, the Istanbul University Campus, and small local cafes away from the busy areas. Ideal for those who want to discover the city in an authentic way.
Remember: no vehicles go all the way to the entrance of the mosque. Whatever your starting point, you will still have to walk the last few meters.
If you have the time and inclination to walk, it’s the best way to discover hidden corners, stop for a Turkish coffee, or take some photos of the neighborhood’s historic alleys.
How to get there by streetcar

ID 62191452 © Zastavkin | Dreamstime.com
The streetcar is the most convenient and direct way to reach Hagia Sophia. The T1 line runs through much of the historic center and connects the city’s main tourist districts. If you want to avoid traffic and get within a few minutes’ walk of the mosque, this is the best choice.
The closest stop to Hagia Sophia is Sultanahmet, but you can also get off at Gülhane, both of which are less than a 10-minute walk from the entrance.
Here’s how to use the T1 line from the areas most frequented by tourists.

Istanbul Unlimited: Prepaid card for public transportation
Istanbul Unlimited public transportation card
Free access to subway, bus, streetcar, and some ferry and funicular lines.
Secure payment
Instant confirmation
Mobile ticket
From Taksim Square
Although the T1 line does not run directly from Taksim, getting there is very easy. Get off at the F1 funicular station, which takes you to Kabataş in a few minutes. From there take the T1 line towards Bağcılar and get off at the Sultanahmet stop.
The entire ride takes about 25-30 minutes, and it is very pleasant: the streetcar passes through lively neighborhoods and offers direct views of the Bosphorus and Galata Bridge.
From the Galata district
From Galata you can walk to Karaköy (5 minutes) and there board the T1 streetcar directly. Again, the direction is Bağcılar, and the stop to use is always Sultanahmet.
On the way you will pass by the Spice Bazaar, Galata Tower, and the lively Eminönü markets. This is a perfect way to start your day in the Old Town.
From Kabataş or Karaköy
If you are staying in the Kabataş area, simply hop on the T1 streetcar directly towards Bağcılar. The route is linear and takes about 20 minutes, with a final stop in Sultanahmet.
The ride is smooth, especially in the morning hours. From Karaköy the principle is also the same, with similar times.
Where to get off
Sultanahmet is the perfect stop if you want to get right into the heart of the monumental district. From there, it’s only a two-minute walk to be in front of the mosque.
If, on the other hand, you want to take a slightly longer walk and perhaps go through Gülhane Park, you can get off one stop earlier, at Gülhane, and enjoy the greenery and the view of the Topkapi Palace walls.
The T1 line is modern, cheap and accessible. It is also the best way to avoid traffic and delays, especially if you visit the city in the middle hours of the day.

The absolute best seller
Hagia Sophia: Skip-the-line ticket
Avoid the ticket line and enter Istanbul’s most impressive mosque
Secure payment
Instant confirmation
Mobile ticket
How to get to Hagia Sophia by bus
Getting to Hagia Sophia by bus is possible, but it is not the most direct solution. The whole area of Sultanahmet is pedestrian, so no bus will take you past the entrance. However, there are some stops quite close by from which you can walk on in a few minutes.
If you are moving from more distant parts of the city or if you prefer a cheap and scenic means of transportation, the bus may be a good choice. You just need to know where to get off.
Sarayburnu stop
This is one of the most frequently used stops to reach the Old Town from the sea side or from Eminönü. It takes about 18 minutes to walk from Sarayburnu to Hagia Sophia. The route is easy and pleasant: you pass by Gülhane Park and enter the monument area from the eastern side.
Lines that stop here include the 28T, 30D, 46Ç, 47E, 99A, BN1 and EM1. If you are not in a hurry and want to take advantage of a walk, this is a good option.
Akbiyik stop
This stop is closer to Hagia Sophia, especially if you are coming from the south of the city. It is located in a quiet, residential neighborhood with many small hotels and local restaurants.
From Akbiyik it is only an 11-minute walk to the entrance of the mosque. You can pass through very quaint side streets that get you right into the heart of Sultanahmet.
The most useful lines are the 81, BN1, BN2 and YT-1.
What to know before going up
Bus travel in Istanbul is convenient, but subject to heavy traffic, especially during rush hour. Travel times can vary widely, so it is advisable to use a map or a transportation app to monitor your location in real time. Alternatively, you can consider the T1 streetcar, which is more regular and faster to get to Sultanahmet (we discuss this in the next section).
If you decide to arrive by bus, also factor in a few extra minutes walking: there are no lines that stop exactly in front of the mosque.
To better plan your itinerary and know when to enter, visit the Hagia Sophia ticket page with up-to-date info, tours, and priority entry.

Complete Package
Hagia Sophia: Mosque and Museum + Public Transportation Card
Explore the magnificent Hagia Sophia Mosque and the Hagia Sophia History Museum and use public transportation without restrictions
Secure payment
Instant confirmation
Mobile ticket
Train and subway
In addition to the streetcar, you can also reach Hagia Sophia by subway or the Marmaray urban train. These are not the most direct options, but they can be very useful if you are coming from more distant areas or if you are close to one of these lines.
Keep in mind that, in any case, you will have to do the last part of the journey on foot. But if you like walking and want to see the city at a leisurely pace, these solutions are perfect.
By subway M2 – Vezneciler stop
If you are on the green M2 line, which runs through the modern center (including Şişli, Taksim and Golden Horn), the most useful stop is Vezneciler. From there you can get off and walk to Divan Yolu Caddesi, via Laleli and Beyazıt.
The walk takes about 30 minutes, but it allows you to pass through a historic area full of mosques, bookstores, small stores and places frequented by residents.
It is an interesting urban walk, although a bit longer than other solutions.
By train Marmaray – Sirkeci stop
The Marmaray line connects the European and Asian parts of Istanbul by crossing the Bosphorus. If you are coming from neighborhoods such as Üsküdar, Kadıköy or Ayrılık Çeşmesi, you can get off at Sirkeci, one of the main stations on the European side.
From there, you only need to walk about 15 minutes to get to Hagia Sophia. The route is pleasant, especially if you cross Gülhane Park and go up to Sultanahmet Square from the eastern side.
The train is modern, fast, and air-conditioned-a good choice if you are coming from far away or want to avoid surface transportation during hot hours.
These alternative options are perfect if you are moving from less central areas, or if you want to avoid the crowded streetcars during peak season. The only disadvantage is the walking distance, but walking is often where you discover the true soul of Istanbul.
By cab or car

ID 137509042 © Zarifaufa | Dreamstime.com
If you are planning to reach Hagia Sophia by cab or private car, know that this is not the most convenient option.
The entire Sultanahmet area is pedestrian-only, and traffic in the surrounding streets is often slow, chaotic, and unpredictable, especially during the middle hours of the day and on weekends.
Getting there by cab
Taking a cab may seem like a convenient option, but don’t expect to get off in front of the entrance. Cabs will drop you off at the edge of the pedestrian area, several minutes’ walk from Hagia Sophia. Plus, during rush hour, you may be stuck in traffic for a long time.
Taxi drivers in Istanbul are used to taking tourists to the Sultanahmet area, but it is important to clarify in advance exactly where they will stop you. Some may drop you off near Gülhane Park or farther towards Cankurtaran.
Finally, consider that cabs are not always the cheapest option, especially if you are traveling from afar or get stuck in traffic.
Driving to Sultanahmet
If you have rented a car or are traveling in your own vehicle, you should know that parking near Sultanahmet is virtually impossible. There are no parking areas in the immediate vicinity of the mosque, and the neighborhood is regulated by limited access and controls.
The most realistic option is to leave your car in a paid parking lot, but you will still have to walk at least 15 minutes to reach Hagia Sophia. Recommended parking lots include those in the Sirkeci area or along the coast at Sarayburnu.
Also, getting around the Old Town by car requires a lot of patience: narrow streets, one-way streets, and crowds of tourists make driving stressful even for the most experienced.
In summary, cabs and cars may be fine only if you have no alternative, but they still require part of the journey to be on foot and a good deal of flexibility.
If you want to avoid the unexpected and save time, I recommend relying on public transportation such as the T1 streetcar or walking to Hagia Sophia from a nearby area.
Conclusion
Getting to Hagia Sophia is easier than you think, but choosing the right vehicle really does make a difference.
Whether you want to walk through the historic alleys, ride the scenic T1 line streetcar, or arrive from afar by bus, subway, or city train, the important thing is to know where to stop-and where to start.
Avoid the car if you can, assess traffic well if you take a cab, and take advantage of the efficient connections Istanbul offers.
Each option has its advantages, especially if you plan ahead.
And once you’re there, let the beauty of the place guide you: Hagia Sophia is not just a destination, it’s an experience that already begins with the path to get there.
To complete your visit, I recommend you take a look at the Hagia Sophia ticket page: you’ll find guided tours, priority admissions, and up-to-date information to experience this extraordinary place to the fullest.

