How Accurate Are DFT Band Gaps? Computed vs Measured for 1,000+ Compounds

We matched 1,120 semiconductors and insulators with measured band gaps to the ground-state gaps in Materials Project, JARVIS-DFT and AFLOW. The databases underestimate the measured gap in 86–87% of cases, typically landing 28–30% low, and the error gets larger as the gap gets wider.
Data snapshot:
86–87%
Of measured gaps that DFT underestimates
Across the three databases
0.70–0.72
Median DFT ÷ measured gap
Compounds DFT does not call metallic
0.96–1.02 eV
Mean absolute error
Semiconductors and insulators
13–21%
Of measured semiconductors that DFT calls metallic
Gap ≤ 0.05 eV

Key findings

  • DFT gaps are systematically low. All three databases put the median gap at 0.70–0.72× the measured value, and the mean signed error is -0.92 to -0.85 eV.
  • The error scales with the gap. Materials Project underestimates by 0.17 eV on average for compounds measured below 1 eV, and by 2.00 eV for those measured above 4 eV.
  • The databases agree with each other more than with experiment. Mean absolute errors range over 0.96–1.02 eV. Their shared starting point (semi-local DFT) matters more than their differences.
  • Some well-known insulators come out metallic. Hematite (Fe2O3, measured 2.2 eV) and Cr2O3 (measured 3.4 eV) are listed at 0.0 eV and 0.0 eV in the Materials Project summary data we ingested. Overall, 13–21% of measured semiconductors come out metallic. Rare-earth and actinide compounds are 30–56% of those false metals but only 17–21% of the matched set.
Part 1

Computed vs measured, database by database

Each dot is a compound with a measured, non-zero band gap. The x-axis is the measured gap; the y-axis is the gap each database reports for its lowest-energy structure. Perfect agreement would sit on the dashed diagonal. Almost everything falls below it.

Materials Project
00551010Measured (eV)Materials Project (eV)
1,004 compounds · MAE 0.96 eV · R² 0.35 · 86% underestimated. Functional: PBE / PBE+U (r2SCAN for some entries).
JARVIS-DFT
00551010Measured (eV)JARVIS-DFT (eV)
701 compounds · MAE 1.02 eV · R² 0.37 · 87% underestimated. Functional: OptB88vdW.
AFLOW
00551010Measured (eV)AFLOW (eV)
567 compounds · MAE 1.01 eV · R² 0.40 · 86% underestimated. Functional: PBE / PBE+U.
Band-gap accuracy by database
DatabaseCompoundsMAE (eV)Mean error (eV)RMSE (eV)R²UnderestimatedMedian ratioCalled metallic
Materials Project1,0040.96-0.851.300.3586.1%0.7218.1%
JARVIS-DFT7011.02-0.921.390.3787.4%0.7021.4%
AFLOW5671.01-0.901.380.4086.4%0.7212.7%
Part 2

The wider the gap, the bigger the miss

Mean signed error (DFT minus measured) grouped by the measured gap. Negative bars mean DFT is too low. The underestimate grows steadily from small-gap semiconductors to wide-gap insulators in every database. A constant correction can’t fix that.

Mean error by measured band gap
Materials ProjectJARVIS-DFTAFLOW
-3-2-100–1 eV1–2 eV2–3 eV3–4 eV4–6 eV6+ eV
Hover a bar for the number of compounds in each range. The table below gives the same values.
Mean signed error by measured gap range (eV)
Measured gap (eV)Materials Project errornJARVIS-DFT errornAFLOW errorn
0–1-0.17203-0.19173-0.1781
1–2-0.71290-0.78186-0.59158
2–3-0.93278-1.10163-0.87159
3–4-1.12125-1.2393-1.0378
4–6-1.7379-1.8263-1.6763
6+-2.7529-2.5723-2.7028
Look-up

Well-known semiconductors and insulators

Measured gaps against each database’s ground-state value, in eV. A dash means the database has no matching entry (or, for AFLOW, no gap on its lowest-energy structure).

Benchmark compounds
CompoundMeasuredMPMP errorJARVISJARVIS errorAFLOWAFLOW error
GaP2.741.60-1.141.48-1.26——
TiO23.302.06-1.242.05-1.25——
Cu2O2.580.51-2.070.64-1.94——
CdO2.300.00-2.300.00-2.30——
SnO23.600.65-2.950.72-2.88——
In2O32.800.63-2.171.20-1.601.12-1.68
InCuS21.500.00-1.500.02-1.480.42-1.08
MoSe21.601.30-0.300.91-0.69——
HgS2.100.00-2.101.40-0.700.00-2.10
AgBr2.520.73-1.790.64-1.88——
AgCl5.130.95-4.180.93-4.21——
Fe2O32.200.00-2.200.41-1.79——
Cr2O33.400.00-3.400.73-2.67——
MnO3.601.31-2.290.00-3.60——
NiO4.002.30-1.700.00-4.00——
CeO23.411.86-1.552.21-1.20——
ZrO24.993.53-1.463.76-1.233.48-1.51
HfO25.554.02-1.534.12-1.434.02-1.53
GeO25.541.22-4.321.29-4.251.23-4.31
Si3N45.104.25-0.854.46-0.644.25-0.85
BaO4.802.09-2.712.08-2.712.09-2.71
SrO5.703.27-2.433.40-2.303.28-2.42
KCl8.505.03-3.475.33-3.175.04-3.46
LiF11.708.72-2.989.30-2.408.73-2.97
CaF29.927.12-2.807.59-2.337.13-2.79
MgF211.106.82-4.287.09-4.006.83-4.27
BeO10.397.46-2.938.04-2.357.44-2.95
Outliers

Where the comparison breaks down

The largest absolute misses, ranked by the Materials Project error. Two groups dominate: wide-gap ionic fluorides (such as RbF, KF and CsF), where semi-local DFT is known to be several eV low, and compounds with localised d or f electrons, which DFT often calls metallic.

Read this list critically. Literature compilations mix optical and fundamental gaps and different measurement temperatures. Some entries are disputed: rare-earth hexaborides such as NdB6 and PrB6 are metals in most references, so their listed “gap” is probably an optical feature. We publish the compilation values unedited so the comparison stays reproducible.

Largest band-gap misses
CompoundMeasuredMPMP errorJARVISJARVIS errorAFLOWAFLOW error
MnF29.902.37-7.541.92-7.982.59-7.31
KTi2F76.400.00-6.400.00-6.402.29-4.11
Yb2O35.220.00-5.220.00-5.220.41-4.81
FeI25.150.00-5.150.00-5.150.00-5.15
NdB64.900.00-4.900.00-4.900.00-4.90
PrB64.900.00-4.900.00-4.900.00-4.90
RbF10.405.52-4.885.96-4.445.54-4.86
CeF34.850.00-4.850.00-4.855.73+0.88
CsF10.005.26-4.74——5.28-4.72
Eu2O34.500.00-4.503.91-0.590.18-4.32
CaB64.500.00-4.500.04-4.460.00-4.50
KF10.305.95-4.356.46-3.845.96-4.34
GeO25.541.22-4.321.29-4.251.23-4.31
NaF10.506.20-4.306.42-4.086.12-4.38
MgF211.106.82-4.287.09-4.006.83-4.27
AgCl5.130.95-4.180.93-4.21——
LaB64.100.00-4.100.00-4.10——
InAgO24.200.23-3.970.41-3.790.62-3.58
Sr2Be2B2O78.004.08-3.924.17-3.834.09-3.91
SrB63.680.00-3.680.02-3.660.00-3.68
Context

Why DFT band gaps come out low

High-throughput databases run semi-local functionals (PBE, OptB88vdW) because they are affordable across hundreds of thousands of structures. These functionals suffer from self-interaction error and lack the derivative discontinuity of the exact functional. As a result, the Kohn-Sham gap they produce is systematically smaller than the fundamental gap you would measure.

A Hubbard U correction (applied by Materials Project and AFLOW to selected transition-metal compounds) opens gaps in correlated oxides, but only for the elements it is applied to. Hybrid functionals such as HSE06, meta-GGAs such as TB-mBJ, and GW calculations get much closer to experiment at higher cost. For screening, treat a database gap as a lower bound, and expect the shortfall to grow with the gap. Different databases can also disagree with each other substantially; see how much materials databases disagree.

Methods

How this comparison was built

  1. Measured gaps come from the Zhuo et al. compilation as distributed by Matbench (4,589 compositions after merging duplicates). Compositions are matched to database entries by reduced formula. Doped or non-stoichiometric compositions have no database counterpart and drop out.
  2. Each database contributes the gap of its lowest-energy entry for that composition, or of a sibling within 10 meV/atom of it, so a gap from a high-energy polymorph is never used.
  3. Error statistics cover compounds with a non-zero measured gap. The median ratio excludes compounds a database calls metallic (gap ≤ 0.05 eV), which are counted separately.
  4. Charts plot a random sample of up to 900 compounds per database. Statistics and the CSV use every match. Warehouse build 20260925T154847Z; page built 2026-09-30.
Open data

Download and cite

Download the data

Every row behind this page (3,424 rows) as CSV, with source identifiers so each value can be traced back.

Download CSV
Cite this page

LatticeGraph (2026). "How Accurate Are DFT Band Gaps? Computed vs Measured for 1,000+ Compounds." LatticeGraph Data Atlas, snapshot 2026-09-30 (warehouse 20260925T154847Z). https://latticegraph.com/atlas/dft-band-gap-accuracy

Please also cite the original datasets listed under Sources.

Sources

Datasets and licences

  • 4,589 compositions with measured band gaps compiled from the literature, 2,140 of them non-zero. Distributed through Matbench.
    Y. Zhuo, A. Mansouri Tehrani, J. Brgoch, J. Phys. Chem. Lett. 9, 1668–1673 (2018); A. Dunn et al., npj Computational Materials 6, 138 (2020).
    License: CC BY 4.0
  • Summary endpoint, release 2025.09.25.
    A. Jain et al., APL Materials 1, 011002 (2013).
    License: CC BY 4.0
  • 3D dataset, release 2026.03 (OptB88vdW gaps).
    K. Choudhary et al., npj Computational Materials 6, 173 (2020).
    License: US Government public domain (NIST)
  • Entries carrying a band gap, release 2026.03.
    S. Curtarolo et al., Computational Materials Science 58, 218–226 (2012).
    License: CC BY 4.0
FAQ

Frequently asked questions

How much does DFT underestimate band gaps?

Against 1,120 compounds with measured band gaps, standard DFT gaps from Materials Project, JARVIS-DFT and AFLOW come out 28–30% below experiment at the median (DFT/measured ratio 0.70–0.72). They underestimate in 86–87% of cases, with a mean absolute error of 0.96–1.02 eV.

Why does DFT underestimate band gaps?

Semi-local functionals such as PBE (GGA) suffer from self-interaction error and lack the derivative discontinuity of the exact functional. The Kohn-Sham gap they report is therefore not the true fundamental gap and is systematically too small. Hybrid functionals (HSE06), meta-GGAs such as TB-mBJ, and many-body GW calculations reduce the error at higher computational cost.

Is the DFT band gap error constant?

No. It grows with the size of the gap. For compounds measured below 1 eV, Materials Project's mean error is -0.17 eV; for compounds measured above 4 eV it is -2.00 eV. A single scissor shift will over-correct small-gap materials and under-correct insulators.

Can DFT predict whether a material is a metal?

Not reliably at this level of theory. Of the measured semiconductors and insulators we matched, 13–21% are predicted to be metallic (gap ≤ 0.05 eV), depending on the database. Rare-earth and actinide compounds are over-represented: 30–56% of these false metals contain an f-block element, against 17–21% of all matched compounds.

More from the atlas

Related studies

Want this kind of ranked, cited comparison for your own candidates?