| | |
| Cuentas Nacionales - Gobierno |
| Var. PIB (%) [+] | 2024 | 3,6% |  | 3,7% | 2024 | Var. PIB (%) [+] |
| PIB anual [+] | 2024 | 316.193 M€ |  | 302.304 M€ | 2024 | PIB anual [+] |
| PIB anual [+] | 2024 | 342.241 M$ |  | 327.208 M$ | 2024 | PIB anual [+] |
| PIB Per Capita [+] | 2024 | 44.749 € |  | 37.477 € | 2024 | PIB Per Capita [+] |
| PIB Per Capita [+] | 2024 | 48.049 $ |  | 40.293 $ | 2024 | PIB Per Capita [+] |
| Deuda total (M.€) [+] | 2025 | 37.825 |  | 90.082 | 2025 | Deuda total (M.€) [+] |
| Deuda total (M.$) [+] | 2025 | 42.742 |  | 101.791 | 2025 | Deuda total (M.$) [+] |
| Deuda (%PIB) [+] | 2025 | 11,30% |  | 28,10% | 2025 | Deuda (%PIB) [+] |
| Deuda Per Cápita [+] | 2025 | 5.276 € |  | 10.983 € | 2025 | Deuda Per Cápita [+] |
| Deuda Per Cápita [+] | 2025 | 5.962 $ |  | 12.411 $ | 2025 | Deuda Per Cápita [+] |
| Déficit (M.€) [+] | 2025 | -1.061 |  | -1.733 | 2025 | Déficit (M.€) [+] |
| Déficit (M.$) [+] | 2025 | -1.199 |  | -1.958 | 2025 | Déficit (M.$) [+] |
| Déficit (%PIB) [+] | 2025 | -0,32% |  | -0,54% | 2025 | Déficit (%PIB) [+] |
| | | | Baa3 | 30/09/2025 | Rating Moody's [+] |
| Rating S&P [+] | 10/05/2019 | A- | | NR | 07/09/2018 | Rating S&P [+] |
| Rating Fitch [+] | 22/06/2018 | BBB | | BB | 20/04/2018 | Rating Fitch [+] |
| Mercado Laboral |
| Tasa de desempleo [+] | II Trim 2026 | 7,6% |  | 7,9% | II Trim 2026 | Tasa de desempleo [+] |
| Parados [+] | II Trim 2026 | 298 k |  | 343 k | II Trim 2026 | Parados [+] |
| Mercados - Cotizaciones |
| Tipo de cambio del dólar [+] | 29/09/2026 | 0,8807 |  | 0,8807 | 29/09/2026 | Tipo de cambio del dólar [+] |
| Precios |
| IPC General [+] | Agosto 2026 | 4,7% |  | 4,0% | Agosto 2026 | IPC General [+] |
| IPRI Interanual [+] | Agosto 2026 | 14,1% |  | 7,7% | Agosto 2026 | IPRI Interanual [+] |
| Mercado de dinero |
| Tipos de interés [+] | 16/09/2026 | 2,65% |  | 2,65% | 16/09/2026 | Tipos de interés [+] |
| Negocios |
| Doing Business [+] | 2015 | 2º |  | 6º | 2015 | Doing Business [+] |
| IPI Interanual [+] | Julio 2026 | 4,6% |  | 0,3% | Julio 2026 | IPI Interanual [+] |
| Vehículos pasajeros Año [+] | Agosto 2026 | 516.945 |  | 144.389 | Agosto 2026 | Vehículos pasajeros Año [+] |
| Vehículos Año/1000 hab. [+] | Diciembre 2018 | 65,02 |  | 23,99 | Diciembre 2018 | Vehículos Año/1000 hab. [+] |
| Impuestos |
| Tipo máximo [+] | 2024 | 45,0% |  | 50,0% | 2024 | Tipo máximo [+] |
| Comercio |
| Llegadas anuales [+] | 2025 | 9.126.500 |  | 20.041.916 | 2025 | Llegadas anuales [+] |
| Exportaciones [+] | 2019 | 31.179,1 M€ |  | 73.912,3 M€ | 2019 | Exportaciones [+] |
| Exportaciones [+] | 2019 | 34.905,0 M$ |  | 82.744,8 M$ | 2019 | Exportaciones [+] |
| Exportaciones %PIB [+] | 2019 | 12,78% |  | 30,78% | 2019 | Exportaciones %PIB [+] |
| Importaciones [+] | 2019 | 64.591,5 M€ |  | 92.025,2 M€ | 2019 | Importaciones [+] |
| Importaciones [+] | 2019 | 72.310,2 M$ |  | 103.022,2 M$ | 2019 | Importaciones [+] |
| Importaciones % PIB [+] | 2019 | 26,48% |  | 38,32% | 2019 | Importaciones % PIB [+] |
| Balanza comercial [+] | 2019 | -33.412,4 M€ |  | -18.112,9 M€ | 2019 | Balanza comercial [+] |
| Balanza comercial [+] | 2019 | -37.405,2 M$ |  | -20.277,4 M$ | 2019 | Balanza comercial [+] |
| Balanza comercial % PIB [+] | 2019 | -13,70% |  | -7,54% | 2019 | Balanza comercial % PIB [+] |
| Comercio Minorista Interanual [+] | Agosto 2026 | 0,6% |  | -6,3% | Agosto 2026 | Comercio Minorista Interanual [+] |
| Socio-Demografía |
| Densidad [+] | 2025 | 893 |  | 255 | 2025 | Densidad [+] |
| Tasa bruta de divorcios [+] | 2024 | 1,69‰ |  | 1,72‰ | 2024 | Tasa bruta de divorcios [+] |
| Tasa Natalidad [+] | 2024 | 7,19‰ |  | 6,66‰ | 2024 | Tasa Natalidad [+] |
| Tasa mortalidad [+] | 2024 | 7,00‰ |  | 8,37‰ | 2024 | Tasa mortalidad [+] |
| Índice de Fecund. [+] | 2024 | 1,09 |  | 1,08 | 2024 | Índice de Fecund. [+] |
| Tasa bruta de nupcialidad [+] | 2024 | 4,16‰ |  | 3,45‰ | 2024 | Tasa bruta de nupcialidad [+] |
| % Riesgo Pobreza [+] | 2025 | 12,7% |  | 14,3% | 2025 | % Riesgo Pobreza [+] |
| Población [+] | 2025 | 7.169.262 |  | 8.201.735 | 2025 | Población [+] |
| IDH [+] | 2015 | 0,922 |  | 0,897 | 2015 | IDH [+] |
| Esperanza de vida [+] | 2024 | 85,58 |  | 84,24 | 2024 | Esperanza de vida [+] |
| Suicidios [+] | 2020 | 373 |  | 556 | 2020 | Suicidios [+] |
| Suicidios por 100.000 [+] | 2020 | 5,52 |  | 7,25 | 2020 | Suicidios por 100.000 [+] |
| Otros |
| COVID-19 - Muertos [+] | 04/07/2023 | 21.491 |  | 21.073 | 04/07/2023 | COVID-19 - Muertos [+] |
| COVID-19 - Confirmados [+] | 31/05/2023 | 2.012.867 |  | 2.690.319 | 31/05/2023 | COVID-19 - Confirmados [+] |
| Completamente vacunadas [+] | 24/05/2023 | 5.751.898 |  | 6.374.137 | 24/05/2023 | Completamente vacunadas [+] |
| COVID-19 - Muertos por millón habitantes [+] | 04/07/2023 | 3.094,38 |  | 2.641,26 | 04/07/2023 | COVID-19 - Muertos por millón habitantes [+] |
| Dosis administradas [+] | 24/05/2023 | 14.828.602 |  | 15.847.908 | 24/05/2023 | Dosis administradas [+] |
- Capital: Madrid
- Población: 7.169.262
- Superficie: 8.028 km2
- Gobierno actual:

- Capital: Barcelona
- Población: 8.201.735
- Superficie: 32.113 km2
- Gobierno actual:

Comparativa de economía y demografía. Para comparar la evolución del mismo dato en los dos lugares, pincha en el gráfico que aparece junto a él.