Capital City of a Country

Pick a country to instantly find its capital city and dialing code.

How it is calculated

You pick a country from the list and the tool looks it up in a built-in table of countries. The table stores, for each country, the name, the international dialling code and the capital city, and only countries that have a capital recorded are offered. The tool returns the capital and the code, shown with the plus sign (for example +61).

There is no calculation, only a lookup, so the answer is as good as the table. Countries with more than one capital (for example a seat of government and a seat of the legislature) are listed with a single entry, and capitals that changed recently may need checking against an official source. If a country has no dialling code on record, a dash is shown instead.

Worked example

Select Australia from the country list. The tool finds its record, which holds the capital Canberra and the dialling code +61. It shows the capital Canberra and the dialling code +61. Note that Canberra, not the better-known Sydney, is the answer.

Try this example →

Common mistakes

  • Assuming the largest city is the capital: Australia's is Canberra, not Sydney, and Turkey's is Ankara, not Istanbul.
  • Using the dialling code as a complete phone number; you still need the area code and the local number, and often must drop a leading 0.
  • Expecting a single answer for countries with several capital roles; only one city is stored.
  • Treating an old atlas as a source of truth for countries whose capital has moved.

About this calculator

This is a reference lookup rather than a formula-based calculation: pick any country and it returns its official capital city along with its international dialing code — the country code prefix defined by the ITU's E.164 numbering plan that routes a phone call to the right national network before the local number takes over. Capital cities aren't always a country's largest city (South Africa has three capitals; Bolivia's constitutional capital differs from its seat of government), which is part of why a quick, reliable lookup is useful rather than relying on memory.

Students studying geography, travelers checking a dialing code before calling internationally, and trivia or quiz writers verifying facts all use this kind of lookup, since capital cities and country codes are exactly the sort of detail that's easy to misremember or mix up between similarly named countries.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    Where a country has more than one seat of power, this table keeps one city. South Africa shows Pretoria, Bolivia shows Sucre, and the Netherlands shows Amsterdam, so the administrative or judicial city may differ from the answer you expect. Use the result as the nominal capital and check an official source for government questions. Which country has surprised you with its capital, and what did you expect to see?

Popular calculators

All Calculators