How to Calculate NDVI from Satellite and Drone Imagery
Any work with satellite or drone imagery tends to start with NDVI. The formula is trivial, yet the numbers often come out wrong — because band numbering differs between satellites, and because skipping the reflectance conversion shifts every value. This guide covers the principle, a band reference table, the traps that produce bad output, and what to use instead when your imagery has no near-infrared band.
What NDVI measures
Leaves absorb red light for photosynthesis and reflect near-infrared strongly because of their internal cell structure. The healthier the vegetation, the bigger the gap between the two. NDVI normalises that gap:
NDVI = (NIR − RED) / (NIR + RED)
Dividing by the sum bounds the result between −1 and 1. Because it is a ratio, it stays reasonably stable when illumination or view angle shift slightly. That robustness is why NDVI has survived for decades.
Reading the values
| NDVI | Typically |
|---|---|
| −1.0 to 0.0 | Water, snow, cloud |
| 0.0 to 0.1 | Bare soil, rock, sand, pavement |
| 0.1 to 0.2 | Very sparse vegetation |
| 0.2 to 0.4 | Grassland, early-season crops, shrub |
| 0.4 to 0.6 | Established crops |
| 0.6 to 1.0 | Dense forest, crops at peak growth |
These bands are not absolute thresholds. They shift with season, region and sensor. Use NDVI comparatively — the same area at different dates — rather than against fixed cut-offs.
Trap 1 — band numbers differ by satellite
"NIR is band 4" is wrong as often as it is right.
| Sensor | RED | NIR | NDVI expression |
|---|---|---|---|
| Landsat 8 / 9 (OLI) | B4 | B5 | (B5 − B4) / (B5 + B4) |
| Landsat 5 / 7 (TM, ETM+) | B3 | B4 | (B4 − B3) / (B4 + B3) |
| Sentinel-2 | B4 | B8 | (B8 − B4) / (B8 + B4) |
| MODIS | B1 | B2 | (B2 − B1) / (B2 + B1) |
Note that Landsat 5/7 and 8/9 are offset by one. Mixing archive and recent imagery in the same study is where this usually bites.
Trap 2 — skipping the reflectance conversion
The numbers stored in a satellite product are not reflectance between 0 and 1; they are scaled integers. Computing directly on them puts NDVI in the wrong range. Each mission defines a scale factor and sometimes an offset.
- Landsat Collection 2 Level-2 —
reflectance = DN × 0.0000275 − 0.2 - Sentinel-2 L2A —
reflectance = DN / 10000(newer processing baselines add an offset)
Because NDVI is a ratio, a pure multiplicative scale cancels out. An additive offset does not. Skip the conversion on Landsat Level-2 data and NDVI comes out systematically low — which is the usual explanation behind "my forest only scores 0.3".
Trap 3 — cloud and shadow
Cloud pushes NDVI toward zero or negative; cloud shadow depresses it. In humid summer climates, scene selection matters more than anything else you do.
- Sentinel-2 L2A ships an SCL (scene classification) band. Masking out pixels classified as cloud, shadow or water before computing produces far cleaner output.
- When comparing two dates, compare the same season. Spring against summer measures phenology, not change.
Drone RGB imagery has no NIR
An ordinary drone orthomosaic has only red, green and blue, so NDVI is not computable. Articles describing "NDVI from RGB" are renaming the visible-light indices below.
| Index | Formula | Character |
|---|---|---|
| ExG (Excess Green) | 2G − R − B | Most widely used; strong vegetation/soil separation |
| VARI | (G − R) / (G + R − B) | Relatively insensitive to atmospheric effects |
| GLI | (2G − R − B) / (2G + R + B) | ExG normalised to −1…1 |
| NGRDI | (G − R) / (G + R) | Same shape as NDVI, simple to compute |
These track biomass less faithfully than NDVI, but for relative comparison within one flight they are perfectly serviceable — crop vigour monitoring, canopy cover, gap detection. There is a dedicated guide on that workflow.
Indices worth knowing besides NDVI
| Index | Targets | Bands needed |
|---|---|---|
| EVI | Corrects NDVI saturation over dense canopy | NIR, RED, BLUE |
| NDWI | Open water and shorelines | GREEN, NIR |
| NDMI | Vegetation moisture, drought stress | NIR, SWIR |
| NDBI | Built-up and impervious surfaces | SWIR, NIR |
| NBR | Burn severity — differenced as dNBR | NIR, SWIR |
NDVI saturates as it approaches 1, so differences within dense forest compress. EVI separates those cases better. Burn severity mapping is covered in the dNBR guide.