DataBrighten

    Energy intensity level of primary energy (MJ/$2021 PPP GDP)

    4,486 × 6rows × columns: 201 countries, 2000 to 2022

    Real data: World Bank, World Development Indicators, indicator EG.EGY.PRIM.PP.KD, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows4,486country-year values
    Countries201with at least one value
    Years2000 – 202223 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Energy intensity level of primary energy is the ratio between energy supply and gross domestic product measured at purchasing power parity. Energy intensity is an indication of how much energy is used to produce one unit of economic output. Lower ratio indicates that less energy is used to produce one unit of output.

    Limits and exceptions (World Bank note)

    Energy intensity level is only an imperfect proxy to energy efficiency indicator and it can be affected by a number of factors not necessarily linked to pure efficiency such as climate.

    The numbers in 2021

    In 2021, 201 countries have a value. The highest is Trinidad and Tobago (18.72); the lowest is Puerto Rico (US) (0.68). The median country value is 4.01. The World Bank's World aggregate for 2021 is 4.54.

    Top 10 countries, 2021

    MJ/$2021 PPP GDP

    Source: World Bank, EG.EGY.PRIM.PP.KD, retrieved 19 November 2026. Computed from energy-intensity-level-of-primary-energy-mj-2021-ppp-gdp.csv.

    Highest, 2021

    #CountryValue
    1Trinidad and Tobago18.72
    2Zimbabwe14.77
    3Liberia14.01
    4Palau13.27
    5Congo, Dem. Rep.12.51
    6New Caledonia12.35
    7Iceland12.33
    8Mozambique11.95
    9Lesotho10.42
    10Curacao10.39

    Lowest, 2021

    #CountryValue
    1Puerto Rico (US)0.68
    2Macao SAR, China0.85
    3Ireland1.09
    4Hong Kong SAR, China1.17
    5Malta1.21
    6Cuba1.35
    7Panama1.41
    8Bermuda1.52
    9Switzerland1.53
    10Sri Lanka1.67
    How many countries report, by decade
    DecadeMost countries in one year
    2000s198
    2010s201
    2020s201

    World aggregate by year

    As published by the World Bank (in the regions file, not the country file).

    YearWorld
    20214.54
    20204.58
    20194.57
    20184.63
    20174.67
    20164.75
    20154.86
    20145.01
    20135.12
    20125.21
    20115.3
    20105.41

    By region, 2021

    World Bank regionValue
    Sub-Saharan Africa 6.14
    Middle East, North Africa, Afghanistan & Pakistan5.33
    East Asia & Pacific5.23
    North America4.43
    South Asia3.94
    Europe & Central Asia3.85
    Latin America & Caribbean 3.35

    First rows

    energy-intensity-level-of-primary-energy-mj-2021-ppp-gdp.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20001.5
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20011.5
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20021.4
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20031.39
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20041.21
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20051.41
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20061.5
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20071.54

    Data dictionary

    ColumnTypeMeaning
    countrytextCountry or economy, World Bank name
    iso3textISO 3166-1 alpha-3 code
    regiontextWorld Bank region
    income_grouptextWorld Bank income group
    yearnumberCalendar year of the value
    valuenumberEnergy intensity level of primary energy (MJ/$2021 PPP GDP), exactly as the World Bank API returns it (not rounded)

    Only country-years with a value are in the long file; blank cells in the wide file mean no value was published.

    Practice questions

    answers computed from the file

    Which country has the highest value in 2021?

    Trinidad and Tobago, with 18.72.

    Excel (on the long CSV: E = year, F = value)

    =FILTER(A2:A100000,(E2:E100000=2021)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2021)))

    SQL (table wb = the CSV)

    SELECT country, value FROM wb WHERE year = 2021
      AND value = (SELECT MAX(value) FROM wb WHERE year = 2021);

    pandas (df = pd.read_csv("energy-intensity-level-of-primary-energy-mj-2021-ppp-gdp.csv"))

    y = df[df.year == 2021]
    y[y.value == y.value.max()][["country", "value"]]

    File: energy-intensity-level-of-primary-energy-mj-2021-ppp-gdp.csv

    How many countries report a value for 2021?

    201 of the 217 economies in the file's country list.

    Excel (on the long CSV: E = year, F = value)

    =COUNTIF(E2:E100000,2021)

    SQL (table wb = the CSV)

    SELECT COUNT(*) FROM wb WHERE year = 2021;

    pandas (df = pd.read_csv("energy-intensity-level-of-primary-energy-mj-2021-ppp-gdp.csv"))

    (df.year == 2021).sum()

    File: energy-intensity-level-of-primary-energy-mj-2021-ppp-gdp.csv

    What is the median across countries in 2021?

    4.01 (median of the 201 country values; not a World Bank aggregate).

    Excel (on the long CSV: E = year, F = value)

    =MEDIAN(FILTER(F2:F100000,E2:E100000=2021))

    SQL (table wb = the CSV)

    -- SQLite has no MEDIAN(); this picks the middle value(s)
    SELECT AVG(value) FROM (SELECT value FROM wb WHERE year = 2021 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2021) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2021));

    pandas (df = pd.read_csv("energy-intensity-level-of-primary-energy-mj-2021-ppp-gdp.csv"))

    df[df.year == 2021]["value"].median()

    File: energy-intensity-level-of-primary-energy-mj-2021-ppp-gdp.csv

    Which country rose the most between 2011 and 2021?

    Venezuela, RB: from 5.08 to 8.32, a rise of 3.24 (out of 199 countries with both years).

    Excel (on the long CSV: E = year, F = value)

    Use the wide file (energy-intensity-level-of-primary-energy-mj-2021-ppp-gdp-wide.csv): add a column = [2021] - [2011], then sort it largest to smallest.

    SQL (table wb = the CSV)

    SELECT a.country, b.value - a.value AS rise FROM wb a JOIN wb b ON a.iso3 = b.iso3
    WHERE a.year = 2011 AND b.year = 2021 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("energy-intensity-level-of-primary-energy-mj-2021-ppp-gdp.csv"))

    w = df.pivot(index="country", columns="year", values="value")
    (w[2021] - w[2011]).dropna().nlargest(1)

    File: energy-intensity-level-of-primary-energy-mj-2021-ppp-gdp.csv

    Which year has the most countries reporting?

    2021, with 201 countries. (Later years are still filling in as countries report.)

    Excel (on the long CSV: E = year, F = value)

    Make a pivot table: year in Rows, Count of value in Values, then sort by the count.

    SQL (table wb = the CSV)

    SELECT year, COUNT(*) AS n FROM wb GROUP BY year ORDER BY n DESC, year DESC LIMIT 1;

    pandas (df = pd.read_csv("energy-intensity-level-of-primary-energy-mj-2021-ppp-gdp.csv"))

    df.groupby("year").size().sort_values(ascending=False).head(1)

    File: energy-intensity-level-of-primary-energy-mj-2021-ppp-gdp.csv