Digital Public Transport Pass No physical card €1.85 Buy Now!

Hagia Sophia and Blue Mosque in Istanbul

Hagia Sophia and Blue Mosque side to side
Trusted by 10,000+ travelers
Updated September 2026
Independent & Unbiased
TL;DR Quick Answer

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:

537 – 1453
Church

The seat of the Patriarch of Constantinople.

1453 – 1934
Mosque

Converted after the Ottoman conquest by Fatih Sultan Mehmed.

1935 – 2020
Museum

Known globally as the St Sophia Museum.

2020 – Present
Mosque

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.

Interior of Hagia Sophia showing the dome and mosaics in Istanbul

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.

€25
per person

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 →
⚡ Skip the queue: Lines can exceed 60 minutes in peak season. The best option is to buy your ticket online with an audio guide included — you get skip-the-line entry and a self-guided tour in one purchase. See ticket + audio guide options →
🎟 Combine & save: If you also plan to visit Topkapi Palace, Basilica Cistern, and take a Bosphorus cruise, the Istanbul Welcome Card bundles everything with skip-the-line access — and saves €40–€120 versus buying separately.

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.

Interior of the Blue Mosque with blue Iznik tiles in Istanbul

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:

✓ Shoulders covered
✓ Knees covered
✓ Headscarf (women)
✓ Shoes removed at entrance
✗ No shorts or tank tops
✗ No flash photography
⚠️ Prayer Times: The mosque is closed to tourists 5 times a day during the call to prayer. The mosque closes to visitors during prayer times, so it is best to check the daily prayer schedule before your visit.
✅ Arrival: Always use the visitor entrance on the Hippodrome side, not the main door reserved for worshippers.

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?

Hagia Sophia and the Blue Mosque seen together in Sultanahmet Square
FeatureHagia SophiaBlue Mosque
Era6th Century (Byzantine)17th Century (Ottoman)
Current StatusActive mosque with paid visitor galleryActive mosque with free visitor entry
EntrancePaid (€25)Free
ArchitectureMassive dome, mosaics, Christian and Islamic layersBlue Iznik tiles, six minarets, bright prayer hall
Best ForLayered history and architectureLiving mosque atmosphere and Ottoman design
Best TimeMorning (09:00–10:30)Early Morning (08:30)
Time Needed45–60 minutes30–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.

🕌
Hagia Sophia

Feels older and more layered because of its Byzantine and Ottoman history.

🕌
Blue Mosque

Feels brighter and more open, with a beautiful interior covered in blue Iznik tiles.

🚶
300 meters apart — under 5 minutes on foot

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.

⏰
Best Time to Visit

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.

🕌
Friday Tip

Avoid Friday mornings if possible, because both mosques are busier during weekly prayers.

📷
Photography

Use a wide-angle lens for Hagia Sophia architecture, but remember that flash is not allowed.

🚇
How to Get There

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.

📱
Stay Connected

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)

How much are Hagia Sophia tickets for 2026?

The ticket for the upper visitor gallery is approximately €25. Entering the ground floor for prayer is restricted for tourists during prayer times.

Is there a combined ticket for both?

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.

How can I avoid the long lines?

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.

Can I take photos inside?

Yes, but no flash. In the Blue Mosque, avoid taking photos of people while they are praying out of respect.

Where is Hagia Sophia located?

Hagia Sophia is in Sultanahmet, directly opposite the Blue Mosque.

Is the Blue Mosque free to enter?

Yes. The Blue Mosque is free to enter, but visitors must follow mosque rules and dress modestly.

Can I visit both in one morning?

Yes. Many visitors see both in one morning, especially if they arrive early.

What should I wear for both sites?

Shoulders and knees should be covered. Women should also bring a headscarf for mosque entry.

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.

Follow ITI on Google

Get more Istanbul guides from ITI

See more of our current guides in Google Search and AI results.

>