Hagia Sophia has towered over Istanbul for almost 1,500 years and has been a church, a mosque, a museum and a mosque once again. That last change has transformed everything for you as a visitor to Hagia Sophia in Istanbul: you pay an entrance fee, go in through a separate entrance and see the building from the gallery upstairs.
Many people are surprised by the queue, the price and the rules, and some go home disappointed. Others have one of their best experiences in Istanbul. The difference usually comes down to whether they knew what they were walking into.
Planning your trip to Istanbul at the last minute? 🇹🇷
Here are some of the best things to do, plus hotels and other tips for your trip to Istanbul.
🎡 Top Activities & Tours:
1. Save time with a combined ticket for Topkapi, Hagia Sophia and the Basilica Cistern and skip the long queues
2. See the city from the water when you book a 3-hour Bosphorus cruise with a stop on the Asian side
3. Skip the taxi and book your airport transfer via GetYourGuide
🛌 Best Hotels:
1. Four Seasons Hotel Istanbul at Sultanahmet is a luxury hotel in a former prison with a rooftop terrace between Hagia Sophia and the Blue Mosque
2. Hotel Empress Zoe is a charming Ottoman-style boutique hotel with a lush garden terrace in the heart of Sultanahmet
3. Hotel Sari Konak is a cosy budget hotel with a great rooftop terrace and a perfect location for sightseeing
Here you’ll find the ticket, the entrance, the prayer times and the dress code, a run-through of the mosaics that make the visit worthwhile, and the neighbours: the Blue Mosque and the Basilica Cistern. Prices are in euros.
Contents
Hagia Sophia in Istanbul is an active mosque: what it means for your visit
Hagia Sophia became a mosque again in 2020, and since January 2024 visits have been split in two. The ground floor with the great prayer hall is open for prayer and is free. Tourists who come to see the building use a separate route up to the gallery and pay an entrance fee.
From the gallery you look down into the vast church interior beneath the dome, and this is also where the famous Byzantine mosaics are. So as a tourist you don’t get onto the floor of the prayer hall, but the view from above gives you the best sense of the building’s sheer size.
For many believers, Hagia Sophia is one of the most important places in Turkey, and thousands come for Friday prayers and on religious holidays. Seeing the building in use is part of the experience, but it also means that as a tourist you have to fit in with the rhythm of the mosque.
The mosque closes to tourists during prayers, especially for Friday prayers in the middle of the day, and there may be short breaks at the other prayer times. So plan your visit for the morning or late afternoon.
Tickets and entrance
Foreign tourists pay around 25 euros for the route up to the gallery. The fee was introduced in January 2024 and may change, so treat it as a guide. Children under 8 get in free with an adult, but bring their passports.
The tourist entrance is on the south-east side of the building, facing Topkapı Palace, not at the main entrance facing the park, which is used by worshippers. There’s a ticket office at the entrance, and the queue can be long in high season. The Museum Pass for Istanbul’s state museums isn’t valid at Hagia Sophia.
The queue at the tourist entrance often comes in two parts: first the queue for the ticket office, then the queue for the security check. In high season the total wait in the middle of the day can be over an hour, while in the morning it’s often short. If you have a ticket in advance, you only skip the first part.
If you want to avoid the ticket queue or have a guide to explain the mosaics and the history, you can book a ticket with a guided tour in advance.
See tickets and guided tours of Hagia Sophia here.
Dress code and rules
- Shoulders and knees: must be covered for everyone.
- Hair: women must cover their hair. Headscarves are sold at the entrance, but it’s easier to bring your own.
- Shoes: must come off in the carpeted areas.
- Behaviour: keep your voice down, and don’t photograph people who are praying.
- Bags: there’s a security check, so only bring a small bag.
The rules are the same at the Blue Mosque and the other mosques in Sultanahmet, so it’s a good idea to dress appropriately for the whole day.
The walk up to the gallery
The tourist route goes up the old ramp, worn smooth by visitors over 1,500 years. It leads up to the gallery, which runs around three sides of the church interior, and from here you wander round at your own pace.
From here you see the dome, which rests on four great arches and seems to float above the space. The dome is around 31 metres in diameter, and it was built in just five years. Look out for the four seraphim, the six-winged angels, in the corners beneath the dome, and the large round panels with Arabic calligraphy that were added in the 19th century.
Photography is allowed in the gallery without flash, but be considerate towards the worshippers below, and don’t use a tripod. Many of the best photos are taken from the western part of the gallery, where you look straight towards the apse and the mihrab.
If you want time to see everything, allow an hour in the gallery. It can get busy around the best-known mosaics, so see those first, or come close to closing time.
The church interior seen from the gallery

The first thing most people notice is the light. The dome rests on a ring of 40 windows, so it appears to float, and the light falls across the huge marble surfaces and the large chandeliers hanging low over the floor.
Look out for the marble columns in different colours, some of which, according to tradition, were brought from ancient temples around the empire. Down on the floor you can see from the gallery the omphalion, a circle of coloured stone where the Byzantine emperors were reputedly crowned, and the Ottoman mihrab and minbar, which show the direction of Mecca.
The gallery also has a marble door known as the Gate of Heaven and Hell, and you can see how the marble panels on the walls have been cut and turned so that the patterns mirror each other. These are details that are easy to walk past if you’re only looking for the mosaics.
The Mosaics You Need to See

The Byzantine mosaics were covered in plaster for centuries and were only uncovered in the 20th century. These are the ones you shouldn’t miss:
- The Deësis mosaic: Christ between the Virgin Mary and John the Baptist, dating from the 13th century. It is partly destroyed, but the faces are so delicate and human that many consider it the finest Byzantine mosaic in existence.
- The Empress Zoe mosaic: the empress and her husband on either side of Christ. The emperor’s face has been replaced, because Zoe married several times.
- The Komnenos mosaic: Emperor John II Komnenos and his empress with the Virgin Mary and the Christ Child, in vivid colours and gold.
- The Loge of the Empress: a marked spot in the gallery where the empress and the court followed the services.
- The Viking inscription: runes are scratched into the parapet in the gallery, probably by a Norse mercenary in the emperor’s guard. Look for the name Halfdan.
The mosaics were made from small pieces of coloured glass and stone, many of them backed with gold leaf so they glittered in the candlelight. If you stand close, you can see how the pieces are set at slight angles so they catch the light from different directions.
On your way out, you pass the large mosaic above the door showing the Virgin Mary, the Christ Child and the emperors Constantine and Justinian presenting her with the city and the church. It’s the last thing you see, so remember to turn around.
1,500 Years of History in Brief

The church you see today was built from 532 to 537 under Emperor Justinian, after a revolt had burnt down the previous church. The architects Anthemius of Tralles and Isidore of Miletus built what was then the largest dome in the world, and for almost a thousand years Hagia Sophia was the largest church in Christendom.
The building has survived earthquakes, looting and rebuilding. The original dome partly collapsed after an earthquake in 558 and was rebuilt slightly higher, and in 1204 the crusaders of the Fourth Crusade plundered the church for gold, relics and art. Many of the treasures now in Venice came from here.
When the Ottomans conquered Constantinople in 1453, the church became a mosque. Minarets were added, the mosaics were covered, and the building became the model for many of the great Ottoman mosques, including the Blue Mosque directly opposite.
In 1934 the Turkish Republic turned the building into a museum, and over the following decades the mosaics were uncovered and restored. In 2020 it became a mosque again. Hagia Sophia is part of historic Istanbul, which is on the UNESCO World Heritage List.
Prayer Times and the Best Time to Visit Hagia Sophia Istanbul
There are five daily prayers, and the times shift with the sun throughout the year. The mornings and late afternoons usually have the longest stretches without interruptions. The midday Friday prayer is the most important, and the mosque is closed to tourists for longer around it.
You can find the day’s prayer times in an app or on notices in Sultanahmet. Ideally, arrive at opening time in the morning, when the queue is shortest and the groups haven’t yet arrived. Late afternoon is also a good time, but be aware that there may be a break for the afternoon prayer.
Allow an hour in the gallery and a little extra time for the queue. April to October brings the most visitors, and weekends and public holidays are the busiest. In winter there are fewer tourists, but the days are shorter.
Is Hagia Sophia Worth the Money?
The short answer is yes, if you’re interested in history and art. The mosaics in the gallery and the view down into the nave can’t be found anywhere else, and it’s one of the most important buildings in the world.
The slightly longer answer is that some people find the price high, especially because worshippers get in free through a different door, and because parts of the building may be covered in scaffolding during restoration. If you mainly want to experience a beautiful mosque from the inside, the Blue Mosque directly opposite offers a great experience with no entrance fee.
Also bear in mind that Hagia Sophia is an old building that is constantly being restored. Scaffolding may cover parts of the dome, the mosaics or the gallery, and some areas may be closed off for periods. It doesn’t spoil the experience, but it’s worth knowing before you pay.
If you only have time for one paid attraction in Sultanahmet, consider whether it should be Hagia Sophia, Topkapı Palace or the Basilica Cistern. Most people choose Hagia Sophia, and it’s rarely a bad choice.
The Blue Mosque Directly Opposite

The Sultan Ahmed Mosque, which most people call the Blue Mosque, stands on the other side of the park. It was built from 1609 to 1616 and has six minarets. The name comes from the thousands of blue and white Iznik tiles covering the walls inside.
The mosque is free, but it closes to tourists during prayers, and the same dress code applies as in Hagia Sophia. Tourists use a separate entrance, and the queue usually moves quickly. Come in the morning and avoid the time around Friday prayers.
Inside, the mosque rests on thick pillars that support the great dome, and light pours in through more than 200 windows. It’s worth comparing it with Hagia Sophia: the architects of the Blue Mosque clearly learnt from the old church, but built it more than 1,000 years later with entirely different means.
In the evening, the illuminated domes and minarets on both sides of the park are one of Istanbul’s most beautiful sights, and you can enjoy them for free from a bench in Sultanahmet Park.
The Basilica Cistern

Underground, a few minutes’ walk from Hagia Sophia, lies the Basilica Cistern, a huge 6th-century water reservoir also built under Justinian. Hundreds of columns rise from the water in the half-light, and at one end two columns stand on ancient Medusa heads, one upside down and the other on its side.
The cistern could hold vast quantities of water, brought to the city through aqueducts, and it supplied the imperial palace among other places. Later it was forgotten for a time, and it has since been used as a backdrop in several films, including the 1963 James Bond film From Russia with Love. Today there are walkways over the water and atmospheric lighting.
The cistern requires its own ticket, and there can be long queues in high season. It’s a good choice in the middle of the day when it’s hot outside, or when Hagia Sophia is closed for prayers. You’ll find tickets and opening hours at the Basilica Cistern.
More Byzantine treasures in Istanbul
If Hagia Sophia has left you wanting more, Istanbul has several other Byzantine buildings that fewer tourists know about:
- Little Hagia Sophia: a former 6th-century church south of Sultanahmet, now a mosque. It is smaller and much quieter, and it was built just before Hagia Sophia.
- Hagia Irene: a Byzantine church in the first courtyard of Topkapı Palace that was never converted into a mosque and is now used as a museum.
- The Mosaic Museum: a small museum behind the Blue Mosque with floor mosaics from the Great Palace of the emperors, which once stood in the area.
All three are within walking distance of Hagia Sophia, and they are good to keep up your sleeve if the queue is long or the mosque is closed during prayers.
A day in Sultanahmet around Hagia Sophia, Istanbul
Hagia Sophia, the Blue Mosque, the Basilica Cistern and Topkapı Palace are all within a ten-minute walk of each other. Here is a day that works:
- Morning: Hagia Sophia at opening time, before the groups arrive.
- Late morning: the Blue Mosque, either before the midday prayer or when it reopens to tourists afterwards.
- Midday: lunch in Sultanahmet and the Basilica Cistern during the heat of the day.
- Afternoon: Topkapı Palace with the Harem and the view over the Bosphorus. You can find tickets and information from the Turkish state museums.
- Evening: the illuminated mosques seen from the park, and dinner in one of the streets around the Hippodrome.
Between the mosques lies the Hippodrome, where the Byzantines held chariot races. Today it is a long, narrow square, but three monuments still stand where the spectator stands once were: an Egyptian obelisk that Emperor Theodosius had shipped here in the 4th century, the twisted Serpent Column from Delphi and a stone-built monument. The square is free and sits right next to the Blue Mosque.
I have gathered the rest of the city’s highlights, from the Grand Bazaar to the Galata Tower, in my guide to things to do in Istanbul. You can find more ideas on Türkiye’s official tourism website, Go Türkiye.
Tips before you go
- Bring your own headscarf: it saves time at the entrance, and you will need it in the Blue Mosque too.
- Long trousers or a long skirt: shorts and short skirts will be turned away or have to be covered up.
- Shoes that are easy to slip off: you will take them off several times during a day in Sultanahmet.
- Cash and cards: the ticket office accepts cards, but small purchases in the area are easier with lira.
- Watch out for street offers: you will often be offered guides, carpets and restaurants around the square. Politely say no if you are not interested.
Hagia Sophia with children
Children under 8 get in free, and the ramp up to the gallery is easier to walk than stairs. The mosaics and the view down into the vast hall hold most children’s attention for half an hour, and the Viking inscription is a fun thing to hunt for together. Pushchairs are awkward on the ramp and in the queue, so a baby carrier is easier.
How to get to Hagia Sophia
Hagia Sophia is in Sultanahmet, in the old part of the city on the European side. The easiest way there is the T1 tram to the Sultanahmet stop, which is a couple of minutes’ walk away. The tram also runs to Eminönü by the Galata Bridge and on to Kabataş.
Pay with an Istanbulkart, which you can buy and top up at the machines at the stops. If you are flying in, see my guide on how to get from Istanbul Airport to the city centre.
Hotels near Hagia Sophia
If you stay in Sultanahmet, you can walk to all the major sights and be at Hagia Sophia before the queue gets long. The neighbourhood is quiet in the evening and close to the tram. You can see hotels in Sultanahmet here. Here are three in different price ranges.
Four Seasons Hotel Istanbul at Sultanahmet is a five-star hotel in the heart of Sultanahmet, a few minutes’ walk from Hagia Sophia, with a spa, restaurant and garden. One guest writes: “The staff were friendly, and the service was absolutely amazing.” It is one of the most expensive hotels in the city.
Celine Hotel – Ottoman Mansion is on Peykhane Street, about a 7-minute walk from Hagia Sophia. Guests praise the location, the staff and the breakfast. One guest writes: “A beautiful hotel with the perfect location for exploring Istanbul.” Street-facing rooms can be noisy.
Endican Sultanahmet Hotel is the budget choice in Çemberlitaş, about a 10-minute walk from Hagia Sophia and close to the tram. One guest writes: “Fantastic location, lovely clean hotel.” The rooms are small.
If you want to compare more neighbourhoods, from Sultanahmet to Karaköy and Beyoğlu, read my guide to where to stay in Istanbul.
Hagia Sophia is at its best when you come prepared. Dress according to the rules, arrive early or late, check the prayer times and take your time with the mosaics in the gallery. Then walk across the park to the Blue Mosque, and you will have seen two of the world’s most important buildings in a single morning.
Travel ressources & websites I use all the time 👇
• Booking.com has the best offers on hotels and unique places to stay
• GetYourGuide is the best place to book tours & activities with free cancellation
• Welcome Pickups is the best & safest place to pre-book airport transfers
Psst 👀 Have you subscribed to my Youtube channel and my Instagram where I provide more useful travel tips?