There is no single answer to the distance between an airport and a city's downtown. It varies enormously based on:
Distances can range from a few kilometers (e.g., London City Airport to Canary Wharf) to 50–100+ km (e.g., Tokyo Narita to central Tokyo, Denver International to downtown Denver).
Best practice: Use Google Maps, the airport's official website, or local transit authorities for precise, route-specific distances and travel times for your particular origin and destination.