Off-Nadir Delta

MNDWI and NDWI Explained: Mapping Water Bodies from Space

Kazushi MotomuraJune 9, 2025(Updated: October 18, 2026)7 min read
MNDWI and NDWI Explained: Mapping Water Bodies from Space

Quick Answer: MNDWI = (Green - SWIR) / (Green + SWIR), Sentinel-2 (B3 - B11) / (B3 + B11). It replaces the NIR band of NDWI with SWIR, which suppresses built-up false positives — use MNDWI when urban areas or bare soil might be confused with water. NDWI = (Green - NIR) / (Green + NIR) works well for natural water bodies in rural areas. Both range -1 to +1; positive values indicate water.

Why Water Detection Isn't as Simple as It Looks

Water appears dark in most satellite imagery — so why do we need specialized indices to detect it? Because several other surfaces also appear dark:

  • Shadows from clouds, mountains, and buildings
  • Asphalt and dark rooftops in urban areas
  • Dark volcanic soils
  • Burned areas after wildfires

A simple brightness threshold will misclassify all of these as water. Spectral indices exploit the specific way water absorbs and reflects different wavelengths to separate it from these dark-but-not-water surfaces.

The Two Main Water Indices

NDWI (Normalized Difference Water Index)

Proposed by McFeeters (1996, International Journal of Remote Sensing 17(7): 1425–1432; doi:10.1080/01431169608948714), NDWI uses the contrast between green light (which water reflects somewhat) and near-infrared (which water absorbs strongly):

NDWI = (Green - NIR) / (Green + NIR)

For Sentinel-2: (B3 - B8) / (B3 + B8)

  • Water: positive values
  • Vegetation: negative values
  • Bare soil: around zero or negative

The exact values in any scene depend on water depth, turbidity, and illumination, so treat these as signs rather than fixed ranges.

MNDWI (Modified Normalized Difference Water Index)

Proposed by Xu (2006, International Journal of Remote Sensing 27(14): 3025–3033), MNDWI substitutes a middle-infrared (SWIR) band for the NIR band of NDWI. The paper's abstract states the motivation directly: water extracted with NDWI is often mixed with built-up land noise, and MNDWI enhances open water while suppressing built-up, vegetation, and soil noise (doi:10.1080/01431160600589179):

MNDWI = (Green - SWIR) / (Green + SWIR)

For Sentinel-2: (B3 - B11) / (B3 + B11), where B11 is the SWIR band near 1610 nm (Sentinel-2 mission, SentiWiki)

  • Water: positive values
  • Built-up areas: negative (unlike NDWI where they can be near-zero or positive)
  • Bare soil: negative values

Before computing either index it helps to look at the scene itself: open the area from the Sentinel-2 viewer in the workspace (free account) and switch to false color, where water shows dark against bright vegetation.

Why MNDWI Outperforms NDWI in Urban Areas

The key problem with NDWI is that built-up surfaces (concrete, asphalt) can produce near-zero or slightly positive NDWI values — dangerously close to actual water signatures. This happens because urban materials have relatively low NIR reflectance.

MNDWI solves this by using SWIR instead of NIR. Built-up surfaces have high SWIR reflectance, pushing them firmly into negative MNDWI territory. The separation between water (positive) and urban (strongly negative) becomes much cleaner.

Surface TypeNDWIMNDWI
Deep, clear waterPositivePositive
Shallow/turbid waterWeaker positive, can approach zeroWeaker positive
VegetationNegativeNegative
Bare soilAround zero or negativeNegative
Built-up areasNear zero, can be positive ⚠️Negative ✅

The signs follow from the index definitions and from Xu's comparison; the magnitudes vary by scene and sensor, which is why the table gives no fixed ranges.

Practical Applications

Flood Extent Mapping

After a flood event, comparing pre-flood and post-flood NDWI images reveals inundated areas. Areas where NDWI changed from negative to positive indicate new water presence. This complements SAR-based flood mapping — SAR works through clouds during the event, while optical-based NDWI provides cleaner water boundaries once skies clear.

Reservoir and Lake Monitoring

Track seasonal water level changes by computing NDWI time series. The water boundary (NDWI = 0 threshold) shifts inward during dry seasons and expands during wet seasons. This is particularly useful for monitoring drought impacts on reservoirs.

Wetland Delineation

Wetlands present a challenge because they mix water and vegetation signals. In these transitional zones, both NDWI and NDVI are useful — high NDVI with near-zero NDWI suggests vegetated wetland, while positive NDWI with low NDVI indicates open water.

Urban Water Features

Parks, ponds, rivers running through cities — MNDWI is essential here. NDWI alone will produce too many false positives from dark rooftops and parking lots.

Tips for Better Water Mapping

Choose the Right Threshold

The default threshold of zero (water = positive, land = negative) works as a starting point, but optimal thresholds vary by scene:

  • Clear, deep water: a threshold somewhat above zero reduces noise
  • Turbid water: you may need to lower the threshold to zero or even slightly below it
  • Mixed pixels at water edges: a lower threshold captures more of the water boundary but may include wet soil

Watch for Cloud Shadows

Cloud shadows over land can produce positive NDWI values that look like water. Always inspect your results against the true-color image. If a "water body" appears next to a cloud and has an irregular shape matching the cloud outline, it's a shadow.

Consider Seasonal Timing

The best time to map permanent water bodies is during the dry season, when temporary water features have receded. For flood mapping, compare against a dry-season baseline.

Combine with SAR

For the most robust water mapping, combine optical water indices with SAR backscatter analysis. Water appears dark in both SAR and NIR, but the failure modes are different — SAR isn't affected by cloud shadows, and optical isn't affected by wind-roughened water surfaces (which can appear bright in SAR).

Threshold Performance by Water Condition

The default zero threshold works for clean, deep water but becomes unreliable as conditions get harder. The usual direction of adjustment, by condition:

  • Deep, clear lakes and reservoirs: water values sit well above land; a slightly positive threshold is conservative and safe.
  • Turbid rivers, sediment-laden or shallow estuaries: suspended sediment pulls water values down toward zero; lower the threshold, and expect confusion with wet sand.
  • Urban canals and small water bodies: mixed edge pixels and building shadows compete with water; prefer MNDWI.
  • Flooded fields with a thin water layer: values overlap with saturated but unflooded soil; no single threshold separates them cleanly.
  • Cloud shadow: can look like water in either index; mask it rather than tuning the threshold.

Pick the actual values from the histogram of your own scene rather than from a published table.

Accuracy in practice: how well a threshold performs is set almost entirely by how separable water is from its surroundings in that scene. Clean, deep lakes and reservoirs are the easy case — the water and land distributions barely overlap, and a per-scene threshold (Otsu or similar) is close to unambiguous. Floods over agricultural land are the hard case, because saturated soil sits between the two distributions and no threshold cleanly separates them. Urban water bodies fall in between, and MNDWI is materially more reliable than NDWI there because built-up surfaces move well away from the water values. Validate against a manually delineated subset of your own scene rather than assuming a published accuracy figure transfers.

The most common failure mode is cloud shadow misclassification. A cloud shadow over forest produces positive NDWI (the dark NIR of shadowed vegetation looks like water). The fix is always to run cloud and shadow masking (using SCL bands for Sentinel-2) before computing water indices, not after.

Try It in Off-Nadir Delta

Off-Nadir Delta supports both NDWI and MNDWI as built-in visualization options for Sentinel-2 data:

  1. Search for Sentinel-2 imagery over a lake, river, or coastal area
  2. Select NDWI or MNDWI from the visualization options
  3. Compare results — especially in areas with mixed urban and water features
  4. Toggle between NDWI and MNDWI to see how built-up area false positives disappear with MNDWI

For flood monitoring, load imagery from before and after a flood event and switch between NDWI views to visualize the change.

Related reading

A water index computed once tells you the extent on that date. Tracking it as a series over a fixed polygon is a different setup, with its own failure modes — measuring a number versus watching for events covers when a measurement watch is the right tool and how unusual readings are separated from ordinary seasonal movement.

Kazushi Motomura
Kazushi Motomura

Remote sensing specialist with 10+ years in satellite data processing and AI. Founder of Off-Nadir Lab. Ph.D. in Informatics (Yokohama National University, 2026). Master's in Earth System Science and Technology (Kyushu University). Co-author, Remote Sensing Encyclopedia. More about the author →

From headline to satellite evidence

One connected intelligence workflow across four surfaces — free to start, no GIS software or remote-sensing background required.