The Modified Normalized Difference Water Index (MNDWI) was developed by Xu (2006) as an improvement over the original NDWI. By substituting the NIR band with SWIR, MNDWI can enhance open water features while efficiently suppressing noise from built-up areas, vegetation, and soil. This makes it particularly suitable for water detection in urban environments.

Used in water detection, and urban mapping.

When to use

  • Permanent and seasonal water body delineation
  • Flood mapping and emergency response
  • Wetland inventory and change detection
  • Reservoir and lake water level monitoring
  • Coastal shoreline change analysis
  • open water feature detection
  • water body mapping

Limitations

  • Dark surfaces (shadows, asphalt, dark soils) can produce false positives
  • Suspended sediments and algae alter spectral response in shallow water
  • Mixed pixels at water boundaries reduce edge accuracy
  • Atmospheric correction quality directly impacts threshold selection
  • Sun glint over open water can saturate sensors and bias values
  • Requires sensors with SWIR bands — not available on all platforms

What the values mean

-1 Definitely not water
-0.3 Dry / built-up surface
0 Possible moisture / wet soil
0.3 Open water
0.6 Deep / clear water
Surface typeTypical MNDWI
Built-up, asphalt-0.5 to -0.2
Bare soil, vegetation-0.2 to 0
Wet soil, flooded fields0 to 0.3
Open water, lakes0.3 to 0.7

General Formula

Green 520-600
SWIR 1550-1750

Sensor-Specific Formulas

Most-used sensors — click to show code below

SensorProviderFormulaBand Mapping
USGS/NASA(B3 - B6) / (B3 + B6)Green→B3, SWIR→B6
ESA(B3 - B11) / (B3 + B11)Green→B3, SWIR→B11
MAXAR(Green - SWIR2) / (Green + SWIR2)Green→Green, SWIR→SWIR2

Spectral Band Visualization — Landsat 8/9

Code Examples

Adapted for Landsat 8/9 bands —

mndwi_landsat-8-9.py

Frequently Asked Questions

What is the MNDWI (Modified Normalized Difference Water Index) and when should I use it?

The Modified Normalized Difference Water Index (MNDWI) was developed by Xu (2006) as an improvement over the original NDWI. By substituting the NIR band with SWIR, MNDWI can enhance open water features while efficiently suppressing noise from built-up areas, vegetation, and soil. This makes it particularly suitable for water detection in urban environments. Water indices exploit the strong absorption of shortwave infrared and near-infrared radiation by liquid water. They are critical for delineating water bodies, assessing moisture stress in vegetation, and monitoring hydrological changes over time. MNDWI is particularly suited for open water feature detection, water body mapping, urban water monitoring. The general formula is (Green - SWIR) / (Green + SWIR), which requires Green and SWIR spectral bands.

Which satellite sensors can I use to calculate MNDWI?

MNDWI is supported by 4 satellite sensors in our database, including Landsat 8/9, Sentinel-2, SuperView-2, WorldView 3. Each sensor uses different band designations — for example, Landsat 8/9 uses the formula (B3 - B6) / (B3 + B6), while Sentinel-2 uses (B3 - B11) / (B3 + B11). Select a sensor above to see its specific band mapping.

What spectral bands does MNDWI require and why?

MNDWI requires Green (520-600), SWIR (1550-1750). Water absorbs strongly in the near-infrared and shortwave infrared portions of the spectrum, creating a measurable contrast with shorter wavelengths that penetrate the water surface.

How do I calculate MNDWI in Python or R?

Both Python and R code samples are provided above. In Python, use rasterio to load individual band GeoTIFF files and numpy for the arithmetic. In R, the terra package handles raster operations efficiently. The key is to load bands as floating-point arrays to avoid integer division, and to handle division-by-zero cases where the denominator equals zero. For production use, consider applying a valid data mask to exclude no-data pixels before calculation.

Can MNDWI distinguish water from other dark surfaces?

MNDWI is designed to enhance water features, but dark surfaces like shadows, asphalt, and dark soils can produce similar values. For reliable water mapping, consider combining MNDWI with a threshold analysis and, where possible, a secondary index to reduce false positives. Time-series analysis can also help distinguish permanent water bodies from temporary dark surfaces.

MNDWI vs other water indices

IndexNameHow it differs
LSWILand Surface Water IndexAlternative water index — different band combination
LWVI-1Leaf Water Vegetation Index 1Alternative water index — different band combination
LWVI-2Leaf Water Vegetation Index 2Alternative water index — different band combination
NDMINormalized Difference Moisture IndexAlternative water index — different band combination

Related Water Indices

References

Xu, H. (2006) - Modification of Normalised Difference Water Index (NDWI) to Enhance Open Water Features in Remotely Sensed Imagery. International Journal of Remote Sensing, 27(14), 3025-3033

Need help choosing?

Ask our AI assistant for sensor recommendations, code examples, or how MNDWI compares to other indices for your specific use case.

Ask AI →