Topkapi Palace vs Hagia Sophia isn’t really a competition: most travelers see both, since they sit minutes apart in Sultanahmet. The real question is which to visit first and whether to buy a Hagia Sophia ticket that bundles the palace in or keep them separate. Here’s how to decide.

Infographic-style map showing the short walking route between Topkapi Palace and Hagia Sophia through Sultanahmet Square

Split view of Topkapi Palace's Imperial Gate and Hagia Sophia's domes across Sultanahmet, Istanbul, warm afternoon light, both landmarks visible Ready to see prices? Hagia Sophia Skip-the-Line Ticket, from $37.93 See times

What’s the difference between Topkapi Palace and Hagia Sophia?

Topkapi is the Ottoman sultans’ former palace complex, begun in 1459, while Hagia Sophia is a 6th-century Byzantine cathedral turned mosque, so one is a secular imperial residence and the other is a place of worship.

Wikipedia’s entry on the palace traces its construction to Mehmed the Conqueror’s order in 1459, with four main courtyards plus the Harem built up over centuries as the working seat of Ottoman government. Hagia Sophia’s own history runs further back: built between 532 and 537 under Byzantine emperor Justinian I, converted to a mosque after the 1453 conquest, reopened as a museum in 1935, and reclassified as a mosque again in 2020. Both sites carry UNESCO status as part of the Historic Areas of Istanbul, inscribed in 1985.

Which should you visit first, Topkapi Palace or Hagia Sophia?

Visit Hagia Sophia first since it has no timed-entry requirement and flexible hours, then move on to your pre-booked Topkapi slot; doing it the other way around risks rushing Hagia Sophia to make a fixed palace appointment.

Topkapi’s ticket office runs on timed entry, so once you’ve locked in a slot you’re committed to being there at that hour. Hagia Sophia has no such constraint within its own opening hours, aside from the Friday midday prayer closure, so it absorbs a flexible start time far better than the palace does. I’d book the Topkapi slot for mid-morning and treat Hagia Sophia as the flexible piece around it, not the other way around.

Say a traveler with only one full day in Sultanahmet books a 10 AM Topkapi slot without checking Hagia Sophia’s Friday closure first. Visiting Hagia Sophia right at opening instead, before heading to the Topkapi slot, avoids both the midday prayer pause and a rushed walk between the two sites in peak afternoon crowds.

Want a closer look? Hagia Sophia Skip-the-Line Ticket, from $37.93 See times

How far apart are Topkapi Palace and Hagia Sophia?

They sit about a 10 to 15 minute walk apart at the tip of the old city peninsula, both served by the Sultanahmet or Gulhane tram stops on the T1 line.

That short distance is exactly why our own Hagia Sophia, Topkapi and Basilica Cistern combo routes travelers between all three sites on foot in one outing, no transit transfer needed beyond the initial tram ride into Sultanahmet.

Short on time? Hagia Sophia, Basilica Cistern & Blue Mosque Tickets with Audio, from $93.49 See times

Can you visit Topkapi Palace and Hagia Sophia in one day?

Yes, but budget a full day: at least 2 hours for Topkapi’s courtyards and treasury plus 45 minutes to an hour for Hagia Sophia’s Upper Gallery, and remember Topkapi is closed on Tuesdays.

Our combo ticket’s own itinerary builds in exactly that split, plus time for the Basilica Cistern on top if you add it. The palace’s Tuesday closure is a hard constraint worth checking against your dates before you book anything, since no ticket type gets around it; see our full Topkapi Palace opening hours for the seasonal last-entry cutoff too.

Ready to see prices? Hagia Sophia & Blue Mosque Tour with Ticket, Optional Cistern, from $16.50 See times

Is there a combined ticket for Hagia Sophia and Topkapi Palace?

Yes, a real bookable combo bundles skip-the-line entry to both plus the Basilica Cistern and a 13-language audio guide, from $156.18, though it costs well above the Hagia Sophia-only ticket.

Our Hagia Sophia, Topkapi and Basilica Cistern combo is the one bookable option here that includes the palace alongside Hagia Sophia; nothing on this page sells Topkapi and Hagia Sophia together without the cistern folded in too.

TicketSites coveredPriceRating
Hagia Sophia skip-the-line ticketHagia Sophia onlyFrom $37.934.29/5 (1,809 reviews)
Hagia Sophia, Topkapi & Cistern comboHagia Sophia, Topkapi, Basilica CisternFrom $156.184.42/5 (1,688 reviews)

For the full picture on whether the palace earns its place on your itinerary at all, see our verdict on whether Topkapi Palace is worth visiting, and for every ticket type and price for the palace itself, our Topkapi Palace tickets guide lines them all up. If the Harem is also on your radar, our Harem tickets breakdown covers that add-on cost separately, and Hagia Irene, the separate Byzantine church inside the same palace grounds, is easy to add while you’re there.

Want a closer look? Hagia Sophia Skip-the-Line Ticket, from $37.93 See times

Topkapi Palace vs Hagia Sophia: FAQ

Is Hagia Sophia free to enter?

No. Hagia Sophia charges admission; only the Blue Mosque nearby is free to enter for everyone.

Does Topkapi Palace require a timed entry slot?

Yes. Topkapi Palace uses timed entry slots, typically between 9:30 AM and 4 PM, where you meet a host before exploring independently.

Is Topkapi Palace older than Hagia Sophia?

No. Hagia Sophia dates to 532-537 AD, while Topkapi Palace’s construction began in 1459, nearly a thousand years later.

Does Hagia Sophia close for prayer?

Yes. Hagia Sophia pauses tourist visits around Friday midday prayer, roughly 12:30 to 2:30 PM, since it operates as an active mosque.

Short on time? Hagia Sophia, Basilica Cistern & Blue Mosque Tickets with Audio, from $93.49 See times