Hagia Sophia vs Blue Mosque: Which Should You Visit First?

Hagia Sophia vs Blue Mosque
Cenefa Blog
Powered by GetYourGuide

Hagia Sophia costs €25 per person, covers only the upper galleries, and closes to tourists during Friday prayer from 12:00 to 14:30. The Blue Mosque is free, sits directly opposite across Sultanahmet Square, and closes five times daily for about 90 minutes per prayer session. Both require modest dress and removed shoes, but the logistics of each are different enough that the order you visit them in changes how much waiting you do.

If you want both sites covered with a guide who handles the timing and the Hagia Sophia ticket, a Walking Tour of Hagia Sophia, Blue Mosque and Old Town runs about 2.5 to 3 hours with priority admission to both sites in a small group. It also covers the Hippodrome and the German Fountain, so you get the full Sultanahmet context without managing prayer closures and ticket logistics on your own.

That context matters because the two buildings are not just neighboring landmarks. They face each other across Sultanahmet Square as part of a long architectural conversation between Byzantine Constantinople and Ottoman Istanbul. Sultan Ahmed I commissioned the Blue Mosque in 1609 directly across from Hagia Sophia as a deliberate Ottoman answer to the Byzantine cathedral that Justinian had built in 537 AD. That 1,070-year gap between the two structures is visible in every architectural choice: Hagia Sophia’s massive central dome solved an engineering problem no one had attempted at that scale, while the Blue Mosque’s cascading half-domes, six minarets and 20,000 hand-painted Iznik tiles represented a mature Ottoman style that had been developing since the 15th century. Visiting them back to back is the clearest way to read that conversation.

FeatureHagia SophiaBlue Mosque
Cost€25 (foreign tourists, upper gallery)Free
Hours09:00-19:00 (summer from 08:00)08:30-18:30 (summer to ~19:00)
ClosedFriday 12:00-14:30 for prayer5x daily for prayer (~90 min each), Friday until ~14:30
Time needed45-90 minutes30-45 minutes
Tourist entranceNortheast side, near Topkapı Palace gateSouth entrance, Sultanahmet Square
Dress codeShoulders/knees covered, headscarf for womenSame
Museum PassNot validNot applicable (free)

Visit Hagia Sophia First If You Want Byzantine Mosaics and Structural Scale

Hagia Sophia works best as your first stop of the day because the ticket queue at the northeast entrance can stretch to 60 minutes by mid-morning in summer, and arriving before 09:30 cuts that significantly. The €25 ticket gives you access to the upper galleries only; the ground floor is reserved for worship and closed to tourists since the building returned to mosque status in 2020. That upper gallery is where the important Byzantine mosaics are: the Deësis mosaic showing Christ flanked by the Virgin Mary and John the Baptist, and the panels of Empress Zoe and Emperor Constantine IX, all dating from centuries when the building served as the seat of Eastern Christianity.

The structure itself is the main event. Justinian’s dome spans 31 metres and sits 55 metres above the floor, held up by pendentives that transferred weight in a way no previous architect had managed. When it was completed in 537, it was the largest enclosed space in the world, and it held that distinction for nearly a thousand years. The interior reads differently from the upper gallery than from photographs: you see the scale of the nave, the way light enters through the ring of windows at the dome’s base, and the layered history of Christian mosaics alongside Ottoman calligraphic roundels.

Since January 2024, foreign tourists use a separate entrance on the northeast side of the building, near the Topkapı Palace gate, not the Sultanahmet Square entrance (that one is for worshippers only). Guided tours are no longer permitted inside, so download the Hagia Sophia audio guide app before your visit. Children under 8 enter free with passport or ID.

Visit the Blue Mosque First If You Want a Working Mosque Without a Ticket

The Blue Mosque makes sense as a first stop if you are arriving early and want to use the free-entry window before prayer closures start eating into your schedule. The mosque opens at 08:30, and the calmest period is between 08:30 and about 11:30 on a Tuesday, Wednesday or Thursday morning, before tour groups arrive and before the midday prayer closure. Unlike Hagia Sophia, there is no ticket, no separate tourist entrance, and no Museum Pass requirement. You walk in through the south entrance on Sultanahmet Square, remove your shoes, and enter the prayer hall.

The interior is defined by the Iznik tiles. Over 20,000 of them line the upper walls and galleries in patterns of blue, white and green, commissioned from the workshops in Iznik (ancient Nicaea) during the early 17th century. The tiles are why the mosque earned its informal name; the official name is Sultan Ahmed Mosque. Below the tiles, the lower walls are painted rather than tiled, and 200 stained glass windows filter light across the prayer hall in a way that changes noticeably between morning and afternoon visits.

The practical challenge is prayer closures. The mosque closes to tourists five times daily for about 90 minutes per session, and on Fridays it stays closed until approximately 14:30 for the congregational Jumu’ah prayer. The closure times shift daily because they follow the position of the sun, so check the posted board at the south entrance before you join the queue. Arriving 15 minutes before a reopening is a different experience from arriving 15 minutes before a closure.

Dress code is enforced at the door. Shoulders and knees must be covered for both men and women, and women must wear a headscarf. Free scarves are available at the entrance, but the queue to collect them on a busy summer morning adds time, so bringing your own is faster.

How to Visit Both in One Morning

The most efficient sequence on a non-Friday weekday is: Blue Mosque at 08:30 (free, 30-45 minutes inside, before crowds), then walk across Sultanahmet Square to the Hagia Sophia tourist entrance (90 metres) and enter with a pre-booked ticket around 09:30-10:00. That way you use the Blue Mosque’s calmest window, avoid the Hagia Sophia mid-morning queue, and finish both by noon with the rest of the day open.

If you want both sites covered with a guide who handles the timing and the Hagia Sophia ticket, a walking tour of Hagia Sophia, Blue Mosque and Old Town runs about 2.5 to 3 hours with priority admission to both sites. It also covers the Hippodrome and the German Fountain, so you get the full Sultanahmet context without managing prayer closures and ticket logistics separately. On Fridays, this is especially useful because both sites close at midday and the sequence requires more careful planning.

On Fridays, reverse the order or start after 14:30. Both buildings close to tourists around midday for Friday prayer, and the Blue Mosque stays closed longer. A Friday afternoon visit starting at 15:00 at Hagia Sophia, then crossing to the Blue Mosque after it reopens, is workable but tighter.

Who Each One Suits Best

If you only have time for one, the answer depends on what you came to Istanbul for. Hagia Sophia is the stronger choice for anyone interested in architectural history, Byzantine art, or the way a single building can carry 1,500 years of religious and political change in its walls. The €25 fee is worth it specifically for the mosaics and the structural experience of standing inside a 6th-century dome that still works as originally designed.

The Blue Mosque is the stronger choice for visitors who want to experience an active Ottoman mosque, see the Iznik tile programme at its most concentrated, or who are prioritising budget. It is also more accessible for families with young children because the visit is shorter (30-45 minutes versus 45-90 at Hagia Sophia), free, and the open prayer hall is easier to move through than the gallery route at Hagia Sophia.

For most visitors spending two or more days in Istanbul, the answer is both, in the sequence above. They sit 90 metres apart and were designed to be read together.

Connect Istanbul Beyond Sultanahmet

After Hagia Sophia and the Blue Mosque, the rest of Istanbul’s historic peninsula opens up in a line: Topkapı Palace is a five-minute walk from the Hagia Sophia tourist entrance, the Basilica Cistern sits 200 metres southwest, and the Grand Bazaar is a 15-minute walk or one T1 tram stop from Sultanahmet.

For that wider context, a free walking tour of Istanbul connects the Byzantine, Ottoman and modern layers of the city in a way that neither building covers on its own. A guide who knows the Hippodrome’s history as a Roman chariot-racing venue, why the Sultanahmet district carries its name from the same sultan who built the Blue Mosque, and how the Topkapı complex functioned as the nerve centre of the Ottoman Empire gives you the thread that links the two buildings to the city around them.

Frequently Asked Questions

Can I visit both Hagia Sophia and the Blue Mosque in one day?

Yes. They face each other across Sultanahmet Square, about 90 metres apart. On a non-Friday weekday, starting at the Blue Mosque at 08:30 and crossing to Hagia Sophia by 09:30 lets you see both before noon. On Fridays, both close around midday, so plan an afternoon visit starting after 14:30.

Is the Istanbul Museum Pass valid for Hagia Sophia?

No. Since the €25 tourist entrance fee was introduced in January 2024, Hagia Sophia requires a separate ticket. The Museum Pass covers Topkapı Palace, the Basilica Cistern and other sites, but not Hagia Sophia.

What should I wear to visit both sites?

Both require modest clothing: shoulders and knees covered, shoes removed inside. Women must wear a headscarf at both. The Blue Mosque provides free scarves at the entrance; Hagia Sophia sometimes has scarves available for purchase. Bringing your own avoids queues and uncertainty at both sites.

Do I need to book Hagia Sophia tickets in advance?

Booking online is strongly recommended, especially between April and October, when the on-site ticket queue can reach 30 to 60 minutes. Pre-booked tickets do not skip the mandatory security screening, but they do skip the ticket counter.

Is the Blue Mosque really free?

Yes. There is no ticket, no booking and no fee. The mosque welcomes donations at the exit to support maintenance, but entry is free for all visitors at all times outside prayer closures.

What happens if I arrive during a prayer closure?

At the Blue Mosque, you wait outside until the prayer ends and the mosque reopens, typically about 90 minutes per closure. At Hagia Sophia, the Friday closure runs from 12:00 to 14:30; other daily prayer times may cause shorter pauses. The outer courtyard of the Blue Mosque and the grounds around Hagia Sophia are still accessible during closures.

World Free Tours