Electricity Mix in Spain, 1990–2025 — Bar Chart Race
This bar chart race ranks 9 energy sources in Spain by electricity generated (TWh), year by year from 1990 to 2025. The data comes from Ember.
Customise this chart & export videoDownload the data (CSV)
Key facts
- Solar leads in 2025 with 63.03 TWh, followed by Gas (62.05).
- In 1990 the leader was Coal with 59.74 TWh.
- Among today’s top ten, Solar grew the most: 6303.2× since 1990.
- The animation covers 36 time steps from 1990 to 2025 across 9 energy sources.
How the ranking changed
First place changed hands 7 times between 1990 and 2025: Nuclear overtook Coal in 1996, Coal overtook Nuclear in 1997, Gas overtook Coal in 2006, Nuclear overtook Gas in 2014 and Gas overtook Nuclear in 2017, among others. Coal had the longest run at the top (1997–2005).
The biggest climbers into the 2025 top ten were Solar (7th in 1990, now 1st), Wind (8th in 1990, now 3rd) and Gas (5th in 1990, now 2nd).
Other renewables was not in the top ten in 1990 but is in it by 2025.
Solar alone accounts for 22% of the 288.31 TWh total across all 9 energy sources in 2025, up from 151.16 TWh in 1990.
Top 10 in 2025
| Rank | Name | Value (TWh) |
|---|---|---|
| 1 | Solar | 63.03 |
| 2 | Gas | 62.05 |
| 3 | Wind | 58.78 |
| 4 | Nuclear | 54.11 |
| 5 | Hydro | 32.77 |
| 6 | Other fossil | 10.01 |
| 7 | Bioenergy | 6.41 |
| 8 | Coal | 1.14 |
| 9 | Other renewables | 0.01 |
Top 10 in 1990
| Rank | Name | Value (TWh) |
|---|---|---|
| 1 | Coal | 59.74 |
| 2 | Nuclear | 54.27 |
| 3 | Hydro | 25.47 |
| 4 | Other fossil | 9.61 |
| 5 | Gas | 1.51 |
| 6 | Bioenergy | 0.54 |
| 7 | Solar | 0.01 |
| 8 | Wind | 0.01 |
Top 5 over time
| Period | #1 | #2 | #3 | #4 | #5 |
|---|---|---|---|---|---|
| 1990 | Coal59.74 TWh | Nuclear54.27 TWh | Hydro25.47 TWh | Other fossil9.61 TWh | Gas1.51 TWh |
| 2000 | Coal79.09 TWh | Nuclear62.21 TWh | Hydro28.26 TWh | Other fossil24.95 TWh | Gas20.18 TWh |
| 2010 | Gas94.85 TWh | Nuclear61.99 TWh | Wind44.27 TWh | Hydro42.3 TWh | Coal25.33 TWh |
| 2020 | Gas69.74 TWh | Nuclear58.3 TWh | Wind56.44 TWh | Hydro30.51 TWh | Solar20.67 TWh |
| 2025 | Solar63.03 TWh | Gas62.05 TWh | Wind58.78 TWh | Nuclear54.11 TWh | Hydro32.77 TWh |
About the data
Source: Ember, licensed CC BY 4.0. Snapshot last refreshed on . Gaps in a series are interpolated between the nearest reported values.
Questions
Which energy source ranks first for electricity generated in Spain in 2025?
Solar, with 63.03 TWh. Gas is second with 62.05 TWh and Wind third.
Which energy source was first in 1990?
Coal, with 59.74 TWh. By 2025 it ranks 8th.
When did Solar become the top energy source?
Solar took first place in 2025, overtaking Wind.
What were the top 5 energy sources in 2010?
1. Gas (94.85 TWh), 2. Nuclear (61.99 TWh), 3. Wind (44.27 TWh), 4. Hydro (42.3 TWh) and 5. Coal (25.33 TWh).
Where does the data come from?
Ember, published under CC BY 4.0. The chart covers 36 time steps from 1990 to 2025 for 9 energy sources.
Can I export the bar chart race as a video?
Yes. The chart is rendered frame by frame in your browser and saved as an MP4 (H.264) file at up to 4K and 60 frames per second. Nothing is uploaded, so your data stays on your device.
More bar chart races
- Solar Electricity Net Generation by Country
- Solar Electricity Installed Capacity by Country
- Tide and Wave Electricity Net Generation by Country
- Metallurgical Coal Imports by Country
- Metallurgical Coal Exports by Country
- Electricity Net Imports by Country
- Electricity Imports by Country
- Electricity Exports by Country
- All energy charts