Hagia Sophia and Blue Mosque stand opposite each other in Sultanahmet Square. Hagia Sophia requires a paid ticket for the visitor area, while the Blue Mosque is free to enter. The Blue Mosque closes to visitors during prayer times. The best time to visit both is early morning. Modest dress is required at both sites. If you want to save time, it is best to book Hagia Sophia tickets online in advance.
Hagia Sophia and Blue Mosque stand directly opposite each other in Sultanahmet Square. Together, they tell the story of Byzantine and Ottoman Istanbul in one of the city’s most visited areas.
If you are wondering where Hagia Sophia is, how the two sites are different, or whether to choose the Blue Mosque or Hagia Sophia first, this guide will help you plan your visit.
Hagia Sophia (Ayasofya)
Why was the Hagia Sophia important? It has been the spiritual heart of two world empires. Originally built as a cathedral in 532 AD by Emperor Justinian, it was the largest church in Christendom for nearly a thousand years. It was so grand that Justinian is said to have exclaimed, "Solomon, I have outdone thee!" upon its completion.
Its history is a fascinating timeline of transformation:
The seat of the Patriarch of Constantinople.
Converted after the Ottoman conquest by Fatih Sultan Mehmed.
Known globally as the St Sophia Museum.
Reverted to a place of worship, now officially called the Aya Sophia Mosque Turkey. Today, many visitors combine Hagia Sophia with the Basilica Cistern and Topkapi Palace on the same day because all three are within walking distance in Sultanahmet.

Hagia Sophia Architecture & Mosaics
The Hagia Sophia architecture was a revolution. Its massive dome, which seems to float in mid-air, was a miracle of engineering. Inside, look for the 107 massive columns brought from ancient temples in Ephesus and Egypt. One of the most interesting parts, however, is the upper gallery. Here, you will find stunning 9th-century Christian mosaics of Mary and Jesus, standing in a fascinating contrast next to massive Islamic calligraphy discs.
🎫 Hagia Sophia Tickets and Entry (2026 Update)
Under the current visitor policy, tourists use the upper visitor area, while the main prayer floor remains reserved for worship. While the ground floor is for prayer, the upper gallery (visitor section) requires a ticket.
Hagia Sophia — Upper Gallery Ticket
You can buy Istanbul Hagia Sophia tickets at the entrance, but lines can be very long during busy periods. To save time, it is best to buy your Hagia Sophia tickets online in advance. The current ticket price for the visitor area is approximately €25.
Check Hagia Sophia Ticket Availability →The Blue Mosque (Sultan Ahmed Mosque)
Located just a short walk across the park, the Blue Mosque in Istanbul was built between 1609 and 1616 by Sultan Ahmed I. It was built as an imperial mosque and remains one of the most important religious landmarks in the city today. His goal was to build a grand imperial mosque near Hagia Sophia and leave a strong architectural legacy in Istanbul. While it is officially named the Sultan Ahmed Mosque, it earned its "Blue" nickname from the 20,000 handmade Iznik tiles that decorate the interior walls with floral and geometric patterns.

Blue Mosque Istanbul History
It is famous for being one of the few mosques in the world with six minarets. At the time, this was seen as a challenge to the Grand Mosque in Mecca (which also had six), so the Sultan eventually paid for a seventh minaret to be built in Mecca to show his respect. For visitors interested in the history of Blue Mosque in Turkey, this imperial mosque remains one of the clearest symbols of classical Ottoman architecture in Istanbul.
Blue Mosque Entrance and Rules
Unlike Hagia Sophia’s visitor gallery, the Blue Mosque entrance is free of charge. However, as it is an active place of worship, there are strict rules:
Because the Blue Mosque entrance is free, many visitors start here early in the morning and continue to Hagia Sophia afterwards. This is also a good route for travelers using an Istanbul Welcome Card or planning a full Sultanahmet day.
Blue Mosque vs Hagia Sophia: Which One to See?

| Feature | Hagia Sophia | Blue Mosque |
|---|---|---|
| Era | 6th Century (Byzantine) | 17th Century (Ottoman) |
| Current Status | Active mosque with paid visitor gallery | Active mosque with free visitor entry |
| Entrance | Paid (€25) | Free |
| Architecture | Massive dome, mosaics, Christian and Islamic layers | Blue Iznik tiles, six minarets, bright prayer hall |
| Best For | Layered history and architecture | Living mosque atmosphere and Ottoman design |
| Best Time | Morning (09:00–10:30) | Early Morning (08:30) |
| Time Needed | 45–60 minutes | 30–45 minutes |
Choose Hagia Sophia first if you are more interested in layered history and architecture. Choose the Blue Mosque first if you want a free and active mosque experience in a brighter Ottoman setting.
They are only a few minutes apart, so many visitors see both on the same morning.
Feels older and more layered because of its Byzantine and Ottoman history.
Feels brighter and more open, with a beautiful interior covered in blue Iznik tiles.
Separated by the Sultanahmet Square park. We suggest starting with the Blue Mosque at 08:30 AM and then heading to the Hagia Sophia.
Practical Visit Tips & Insider Secrets
Where is Hagia Sophia located?
Hagia Sophia is located in Sultanahmet, on Istanbul’s Historic Peninsula, directly opposite the Blue Mosque.
If you are wondering where was the Hagia Sophia located in the old city, it stood at the political and spiritual center of Byzantine Constantinople, in today’s Sultanahmet area.
Arrive by 08:15 AM. By late morning, the square is usually much more crowded. If you are visiting in a different season, our Istanbul Weather guide can help you plan your day better.
Avoid Friday mornings if possible, because both mosques are busier during weekly prayers.
Use a wide-angle lens for Hagia Sophia architecture, but remember that flash is not allowed.
Take the T1 Tram to Sultanahmet station. Both landmarks are a short walk from the stop. For a smoother visit, you can also check our Public Transport in Istanbul guide before heading to Sultanahmet.
If you need to check prayer times or online tickets on the go, a Turkey SIM Card can be very useful.
Frequently Asked Questions (FAQ)
The ticket for the upper visitor gallery is approximately €25. Entering the ground floor for prayer is restricted for tourists during prayer times.
No, because the Blue Mosque is free. However, you can find combined skip-the-line tours that cover Topkapi Palace and Basilica Cistern# along with Hagia Sophia.
The only way to "skip the line" at Hagia Sophia is to buy an online ticket or join a guided tour. There is no way to skip the line for the Blue Mosque, but arriving early (08:30 AM) usually means no waiting.
Beyond the Square: Complete Your Day
Once you’ve explored these two landmarks, your journey shouldn’t stop there. Many visitors continue with Basilica Cistern, Topkapi Palace, or a full Istanbul Welcome Card plan to make the most of the Sultanahmet area. Just a few steps away, you can descend into the Basilica Cistern (the underground "Sunken Palace") or walk to the Topkapi Palace to see the Sultan's Harem.
If your feet are tired from walking on the historic cobblestones, we highly recommend booking a Turkish Hammam session nearby. It is one of the most relaxing ways to end a long day of sightseeing in Istanbul.

