Help Centre

Hagia Sophia or Blue Mosque – Which Should You Visit?

Illustration of Hagia Sophia with its red-pink walls on the left and the grey domes and six minarets of the Blue Mosque on the right, separated by an ‘OR’ badge

Photo: illustration

If you only have time for one, see Hagia Sophia for its 1,500-year history and Byzantine mosaics – but foreign visitors pay €25 and follow a set route through the upper gallery, not the main prayer floor. The Blue Mosque is free and lets you into its full prayer hall, but closes to visitors at prayer times. They stand about 400 metres apart, so most people see both in one morning.

Hagia Sophia and the Blue Mosque face each other across Sultanahmet Park, at the heart of Istanbul’s historic peninsula. One was built as a Byzantine cathedral in 537 and has been a church, a mosque, a museum and a mosque again; the other was built by Sultan Ahmed I between 1609 and 1617, partly to rival it. Both are working mosques today, and both are part of the UNESCO-listed Historic Areas of Istanbul.

The practical difference is bigger than it used to be. Foreign visitors to Hagia Sophia now buy a €25 ticket and see the building from its upper gallery, where the famous mosaics are, while worshippers use the ground floor. The Blue Mosque charges nothing and lets visitors into the prayer hall itself, but it shuts to sightseers for each of the daily prayers and for longer on Friday.

This guide compares the two on history, what you actually see, prices, opening hours, prayer closures, dress code and time needed – using the official Ministry of Culture and Tourism information for Hagia Sophia – and ends with a plan for visiting both in one morning.

Hagia Sophia vs Blue Mosque at a Glance

The key differences for visitors in one table:

Hagia SophiaBlue Mosque
Also calledAyasofya (Hagia Sophia Grand Mosque)Sultan Ahmed Mosque (Sultanahmet Camii)
Built532–537, as a Byzantine cathedral1609–1617, as an Ottoman imperial mosque
Entry for foreign visitors€25 (children under 8 free)Free
What visitors seeSet route through the upper galleryThe main prayer hall (visitor area)
Visiting hoursAbout 9:00–19:30 (from 8:00 in summer)From about 8:30 until early evening
Prayer closuresFriday 12:00–14:00; short pauses possible at other prayersClosed to visitors at each daily prayer, longer on Friday
Time needed1–1.5 hours, plus queue30–45 minutes, plus queue
HighlightByzantine mosaics and the 55-metre-high domeMore than 20,000 İznik tiles and six minarets
Museum Pass IstanbulNot validNot needed (free)
Best forHistory lovers, mosaics, architectureBudget travellers, Ottoman art, seeing a working mosque from inside
Book Hagia Sophia Tickets

Which One Should You Visit?

Choose Hagia Sophia if Byzantine history and mosaics matter most to you and €25 fits your budget. Choose the Blue Mosque if you want to stand inside a great Ottoman prayer hall for free, or if your time is very short. With a free morning in Sultanahmet, do both.

Neither one is a substitute for the other. Hagia Sophia is about layers of history – a cathedral for more than 900 years, then a mosque, then a museum – and its mosaics of Christ, the Virgin and Byzantine emperors. The Blue Mosque is a single, coherent Ottoman masterpiece, and you experience it the way worshippers do, standing on its carpets under the domes. Use these rules of thumb:

  • Only one hour: the Blue Mosque – it is free, quick and right on the square. Hagia Sophia’s queue alone can take 30–60 minutes at busy times.
  • History and mosaics: Hagia Sophia. The Deësis mosaic and the imperial portraits in the galleries are among the finest Byzantine art anywhere.
  • Tight budget: the Blue Mosque is free. Hagia Sophia costs €25 per adult; children under 8 go free.
  • Want to walk the main floor: the Blue Mosque. At Hagia Sophia, sightseers see the vast main hall from the galleries above.
  • Friday around midday: neither – both close to visitors for the Friday prayer. Plan for the morning or mid-afternoon.
  • Limited mobility: the Blue Mosque is flat. Hagia Sophia’s gallery route has ramps and stairs that the official site says are not suitable for visitors with mobility difficulties.

Hagia Sophia: From Cathedral to Mosque

Inside Hagia Sophia: the golden main dome and semi-domes above tiers of arched windows, with huge green calligraphy roundels and low-hanging ring chandeliers

Photo: 950x550

The present Hagia Sophia (Holy Wisdom) is the third church on the site. Emperor Justinian I had it built in just five years, from 532 to 537, after riots destroyed its predecessor. His architects, Anthemius of Tralles and Isidore of Miletus, crowned it with a dome about 31 metres across and around 55 metres above the floor, ringed by 40 windows so that it seems to float on light. For nearly a thousand years it was the largest cathedral in the world.

When Sultan Mehmed II conquered Constantinople in 1453, he turned the cathedral into a mosque. Minarets, a mihrab and a minbar were added over the following centuries, along with the giant calligraphy roundels you see in the main hall today. Many of the Christian mosaics were plastered over rather than destroyed, which is why they survive.

In 1935 the building opened as a museum, and the mosaics were gradually uncovered. After 85 years as a museum, it was reconverted into a mosque, and it is now officially the Hagia Sophia Grand Mosque. Prayers are held on the ground floor, which is why sightseers follow a separate route.

What Visitors See Inside Hagia Sophia Now

Foreign visitors enter through a separate visitors’ entrance and follow a one-way route through the upper gallery. From there you look down into the main hall and see the Byzantine mosaics up close; the carpeted prayer floor is reserved for worshippers, who enter free through their own door.

The paid route is not a lesser visit – the galleries hold most of the mosaics – but it is different from the old museum days, when you could walk across the main floor. Highlights on the route include:

  • The Deësis mosaic – Christ flanked by the Virgin Mary and John the Baptist, in the south gallery, often called the finest surviving Byzantine mosaic.
  • The imperial mosaics – Empress Zoe and Emperor Constantine IX, and the Komnenos panel with Emperor John II, Empress Irene and the Virgin and Child.
  • The Marble Door – a carved stone doorway in the gallery, nicknamed the Gate of Heaven and Hell.
  • The view of the main hall – the best place to take in the scale of the dome, the calligraphy roundels and the mihrab.
  • Viking graffiti – runic scratches on a gallery balustrade, left by a Norse visitor in the Middle Ages.

Scaffolding for long-running restoration work may cover parts of the interior when you visit.

The Blue Mosque: Sultan Ahmed’s Answer to Hagia Sophia

The Sultan Ahmed Mosque was commissioned by Sultan Ahmed I in 1609, when he was still a teenager, and completed around 1617. Its architect, Sedefkâr Mehmed Ağa, was a pupil of the great Mimar Sinan, and he placed it deliberately on the opposite side of the old Hippodrome from Hagia Sophia – an Ottoman statement built in sight of the Byzantine one.

Its six minarets were unusual for the time, and its cascade of domes and semi-domes is one of the classic views of the Istanbul skyline. The nickname ‘Blue Mosque’ comes from the blue tones of the İznik tiles and painted decoration inside. The mosque reopened after a major multi-year restoration, so its interior is now brighter than many older photographs suggest.

Unlike Hagia Sophia, the Blue Mosque has never stopped being a mosque. It is part of a larger complex (külliye) that includes the tomb of Sultan Ahmed I, a former madrasa and the Arasta Bazaar behind it.

Inside the Blue Mosque

  • İznik tiles – more than 20,000 hand-made tiles, mostly in the lower walls and galleries, with tulips, carnations, cypress trees and other floral patterns.
  • The domes – a central dome about 23 metres across, supported on four massive fluted piers, with semi-domes stepping down on every side.
  • The windows – some 260 windows light the prayer hall, which is part of what makes the interior feel airy compared with Hagia Sophia.
  • The mihrab and minbar – carved white marble, facing Mecca at the far end of the hall.
  • The courtyard – a vast marble courtyard as big as the prayer hall, surrounded by a domed arcade, open to everyone even during prayers.

Visitors stay in the rear part of the prayer hall, behind a low barrier; the front is kept for worshippers. Even so, you are on the same carpet under the same dome, which is the main reason many travellers find the Blue Mosque the more atmospheric of the two.

Ticket Prices: €25 vs Free

Hagia Sophia costs €25 for foreign visitors aged 8 and over; children under 8 enter free with a passport or ID. The Blue Mosque is free for everyone – there is no ticket, only an optional donation box. ‘Both are free’, a claim still seen online, is no longer true.

Official entryHagia SophiaBlue Mosque
Adult (foreign visitor)€25Free
Children under 8Free (with passport or ID)Free
What the ticket coversUpper gallery visitor routeNo ticket needed
Coming to prayFree, through the worshippers’ entranceFree
Museum Pass IstanbulNot valid–
Where to buyTicket office at the visitors’ entrance or official online sales–
Two adults + two children under 8€50Free

Ticket offices close at 19:00. Lines at the Hagia Sophia ticket office and security check are longest from late morning, so arriving at opening time or buying in advance saves time. Guided tours that combine Hagia Sophia, the Blue Mosque and the Basilica Cistern are available on our Hagia Sophia page; a guide is useful at the Blue Mosque because there are no information panels inside.

Book Blue Mosque Tours

Opening Hours, Prayer Times and Friday Closures

Both buildings are working mosques, so prayer times shape your visit. The Blue Mosque closes to sightseers for roughly 60–90 minutes around each daily prayer. Hagia Sophia’s gallery route is closed on Friday from 12:00 to 14:00. On a Friday, visit either before about 11:30 or after the midday prayer.

Hagia SophiaBlue Mosque
OpenEvery dayEvery day
Visitor hours9:00–19:30; 8:00–19:30 from April to the end of SeptemberAbout 8:30 until early evening
Last tickets19:00No ticket
Daily prayersGallery route may pause brieflyClosed to visitors for about 60–90 minutes each time
FridayVisitor area closed 12:00–14:00Closed to visitors until the early afternoon
Best timeAt openingFirst hour after opening

Muslim prayer times follow the sun, so they shift through the year. In Istanbul the midday prayer falls a little after noon in winter and a little after 13:00 in summer; the afternoon prayer comes mid-afternoon, and the sunset prayer at dusk. Check the day’s times on a prayer-times app or the schedule posted at the mosque, and do not plan a Blue Mosque visit for the half hour before a prayer. During the holy month of Ramadan and on religious holidays, crowds and closures can increase.

The Hagia Sophia hours above come from the official Ministry of Culture and Tourism listing, which shows slightly different summer and winter schedules – check it shortly before your visit. The Blue Mosque does not publish fixed tourist hours, so treat its times as a guide.

Dress Code and Etiquette at Both Mosques

The same rules apply at both, and they are enforced at the door:

  • Cover up: shoulders and knees covered for everyone – no shorts, short skirts or sleeveless tops.
  • Headscarf: women cover their hair. Both mosques usually have scarves and wraps at the entrance, but bringing your own light scarf is more comfortable.
  • Shoes: at the Blue Mosque you take them off and carry them in a plastic bag provided at the door. At Hagia Sophia the gallery route is walked with shoes on, as it is not a prayer area.
  • Behaviour: speak quietly, do not walk in front of people praying, and do not use flash photography. Photos without flash are generally allowed in visitor areas.
  • Security: both have bag checks at the entrance; large bags slow you down.

The Hagia Sophia History and Experience Museum

Because the main building is now a mosque, much of the background that the old museum offered has moved to a separate venue on Sultanahmet Square: the Hagia Sophia History and Experience Museum. It is a different building with its own ticket, and it does not include entry to Hagia Sophia itself.

  • What’s inside: immersive audiovisual floors on the Byzantine and Ottoman periods, a floor of objects from the building’s cathedral, mosque and museum eras, and a view of an old Byzantine cistern through glass on the ground floor.
  • Price: €25 for foreign visitors aged 8 and over.
  • Hours: 9:00–19:00 every day.
  • Combined ticket: combined tickets for the mosque gallery and the museum are sold at the site and through resellers, usually at about the price of the two tickets together.

The museum is worth adding if you want the full story – especially the reconstruction of the cathedral as it looked under Justinian – or if you visit on a Friday around midday, when the mosque is closed to sightseers. Note that the Museum Pass Istanbul (€105, valid for five days from your first museum visit) covers 13 state museums, such as the Galata Tower and the Istanbul Archaeological Museums, but it is not valid at Hagia Sophia.

Did You Know?

Hagia Sophia’s main hall was so large that it remained the world’s biggest cathedral for almost a thousand years after it was finished in 537, and its design influenced Ottoman mosques – including the Blue Mosque across the square.

How to Visit Both in One Morning

Yes, you can see both in one morning. Start at Hagia Sophia when it opens, before the ticket queue builds, then walk four minutes across the park to the Blue Mosque and finish before the midday prayer closure. Allow about three hours in total, including queues.

  1. Opening time – Hagia Sophia. Be at the visitors’ entrance, on the Topkapı Palace side near the Fountain of Ahmed III, a little before opening. Allow 1–1.5 hours for the gallery route.
  2. About 10:30 – Blue Mosque. Walk across Sultanahmet Park, about 400 metres. Check the day’s midday prayer time and aim to be inside at least an hour before it. Allow 30–45 minutes.
  3. Late morning – the Hippodrome. Step outside to see the Egyptian Obelisk and the Serpent Column on Sultanahmet Square.
  4. Midday – the Basilica Cistern or the History and Experience Museum. Both are underground or indoors and stay open while the mosques close for prayer.
  5. Afternoon – Topkapı Palace. Its gates are a five-minute walk behind Hagia Sophia.

On a Friday, reverse the order: visit the Blue Mosque as soon as it opens, then Hagia Sophia, and make sure you are out before 12:00 – or leave Hagia Sophia until after 14:00. Planning a palace too? Our guide to Topkapı Palace or Dolmabahçe Palace helps you choose.

Getting There and What Else to See Nearby

  • Tram: the T1 tram stops at Sultanahmet, a two-minute walk from both mosques. It runs from Kabataş (near Dolmabahçe) through Eminönü.
  • On foot: from the Grand Bazaar it is about 15 minutes’ walk; from Eminönü and the Galata Bridge about 20 minutes, uphill.
  • From the cruise port: Galataport is near the Tophane tram stop on the same T1 line, around 20 minutes from Sultanahmet.

Within ten minutes’ walk are the Basilica Cistern, the Turkish and Islamic Arts Museum on the Hippodrome, and Topkapı Palace. For guided options that cover the whole area, see our Istanbul walking tours, and for everything else, our things to do in Istanbul guide. Heading further into Turkey? Read Pamukkale or Cappadocia for a balloon flight.

Frequently Asked Questions

Is Hagia Sophia or the Blue Mosque better?

Hagia Sophia is the more historic building, with Byzantine mosaics and a 1,500-year story, but foreign visitors pay €25 and see it from the upper gallery. The Blue Mosque is free and lets you into its prayer hall, though it closes at prayer times. If you can only see one and care about history, choose Hagia Sophia; otherwise the free Blue Mosque is excellent.

Is Hagia Sophia free to enter?

Not for foreign sightseers. Since it became a mosque again, foreign visitors aged 8 and over pay €25 for the gallery route; children under 8 enter free with a passport or ID. People coming to pray use the separate worshippers’ entrance to the ground floor free of charge. The Museum Pass Istanbul is not accepted.

Is the Blue Mosque free?

Yes. There is no ticket for the Blue Mosque; you simply queue at the visitors’ entrance and pass a security check. A donation box is placed near the exit, but giving is optional. You only pay if you choose a guided tour, which is helpful because there are few information panels inside.

Can tourists go on the ground floor of Hagia Sophia?

Sightseers on the paid route follow a one-way path through the upper gallery and look down into the main hall; the carpeted ground floor is reserved for prayer. Worshippers enter the ground floor free through their own door. The gallery is where most of the famous mosaics are, so you still see the highlights.

When is the Blue Mosque closed to tourists?

It closes to visitors for about 60–90 minutes around each daily prayer, and for longer on Friday, when it usually reopens in the early afternoon after the congregational prayer. Prayer times change with the seasons, so check the day’s schedule on a prayer-times app or at the entrance before you go.

Is Hagia Sophia open on Fridays?

Yes, but the visitor area is closed from 12:00 to 14:00 for the Friday prayer, according to the official Ministry of Culture and Tourism listing. Visit in the morning or after 14:00. Regular visitor hours are about 9:00 to 19:30, starting at 8:00 in summer, with the ticket office closing at 19:00.

How long do you need for Hagia Sophia and the Blue Mosque?

Allow 1 to 1.5 hours for Hagia Sophia’s gallery route and 30 to 45 minutes for the Blue Mosque, plus time for queues and security checks. Together, with the short walk between them, they fit into a morning of about three hours. Add an hour for the History and Experience Museum.

What should I wear to Hagia Sophia and the Blue Mosque?

Cover your shoulders and knees, and women should cover their hair. Scarves and wraps are usually available at the entrance, but bringing your own is easier. You remove your shoes at the Blue Mosque and carry them in a bag. Avoid shorts, short skirts and sleeveless tops at both.

More from the blog

We use cookies that keep you signed in and remember your language and currency. With your OK, we would also like to use Google Analytics to see how people use Toorists, so we can improve it. Cookie Policy

Hagia Sophia or Blue Mosque? Fees, Hours and Which to See — Toorists