Skip to content

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.

Loading chart…

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

Electricity Mix in Spain, 2025
RankNameValue (TWh)
1Solar63.03
2Gas62.05
3Wind58.78
4Nuclear54.11
5Hydro32.77
6Other fossil10.01
7Bioenergy6.41
8Coal1.14
9Other renewables0.01

Top 10 in 1990

Electricity Mix in Spain, 1990
RankNameValue (TWh)
1Coal59.74
2Nuclear54.27
3Hydro25.47
4Other fossil9.61
5Gas1.51
6Bioenergy0.54
7Solar0.01
8Wind0.01

Top 5 over time

Electricity Mix in Spain: top 5 at each point
Period#1#2#3#4#5
1990Coal59.74 TWhNuclear54.27 TWhHydro25.47 TWhOther fossil9.61 TWhGas1.51 TWh
2000Coal79.09 TWhNuclear62.21 TWhHydro28.26 TWhOther fossil24.95 TWhGas20.18 TWh
2010Gas94.85 TWhNuclear61.99 TWhWind44.27 TWhHydro42.3 TWhCoal25.33 TWh
2020Gas69.74 TWhNuclear58.3 TWhWind56.44 TWhHydro30.51 TWhSolar20.67 TWh
2025Solar63.03 TWhGas62.05 TWhWind58.78 TWhNuclear54.11 TWhHydro32.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