
Hagia Sophia to the Blue Mosque
The Blue Mosque is just a 5-minute walk (about 400 m) from Hagia Sophia — the two face each other across Sultanahmet Square, so you can easily visit both in one trip.
They face each other
Hagia Sophia and the Blue Mosque stand at opposite ends of Sultanahmet Square, directly facing one another.
About a 5-minute walk
The distance is roughly 400 metres — a flat, pedestrian walk across the park between them.
No transport needed
You can comfortably see both in a single visit; most travellers do them back to back.
Are they the same building?
No — this is a common mix-up. Hagia Sophia and the Blue Mosque (Sultan Ahmed Mosque) are two separate buildings from different eras. Hagia Sophia began as a 6th-century Byzantine cathedral; the Blue Mosque was purpose-built as a mosque a thousand years later. For a full side-by-side, see our Hagia Sophia vs Blue Mosque comparison.
| Hagia Sophia | Blue Mosque | |
| Built | 537 AD (Byzantine) | 1616 (Ottoman) |
| Originally | Christian cathedral | Built as a mosque |
| Minarets | 4 | 6 |
| Entry | Free (working mosque) | Free (working mosque) |
Visiting both in one day
Start early at Hagia Sophia, walk across the square to the Blue Mosque, and finish at the nearby Basilica Cistern. Both mosques close to tourists during the five daily prayers, so check prayer times first.
Dress code (both mosques)
As active mosques, both require modest dress: shoulders and knees covered, and a head covering for women. See the full dress code guide.
Frequently Asked Questions
How far is the Blue Mosque from Hagia Sophia?+
The Blue Mosque is about 400 metres from Hagia Sophia — roughly a 5-minute walk. The two buildings face each other across Sultanahmet Square.
Is the Blue Mosque the same as Hagia Sophia?+
No. They are two separate buildings. Hagia Sophia is a 6th-century former Byzantine cathedral; the Blue Mosque (Sultan Ahmed Mosque) was built as a mosque in 1616.
Can you visit Hagia Sophia and the Blue Mosque on the same day?+
Yes, easily. They are a 5-minute walk apart, and most visitors see both back to back, often adding the nearby Basilica Cistern.
What are the Blue Mosque's opening hours?+
The Blue Mosque is open daily and free to enter, but closes to tourists during the five daily prayer times and around midday Friday prayers. Plan visits between prayers.
What is the dress code for the Blue Mosque?+
As a working mosque it requires modest dress: covered shoulders and knees, and a head covering for women. The same applies to Hagia Sophia.