How to Calculate NDVI in QGIS: A Step-by-Step Guide for Beginners

πŸ“‚ GIS πŸ“… ⏱️ 4 Min Read
How to Calculate NDVI in QGIS: A Step-by-Step Guide for Beginners
⚑ Executive Brief & Key Takeaways
  • Primary Signal: How to Calculate NDVI in QGIS: A Step-by-Step Guide for Beginners
  • Overview: NDVI is the most used vegetation index in remote sensing, and QGIS calculates it in minutes. Follow this step-by-step guide from downloading Sentinel-2 data to producing a colour-c...
  • Verification: Analyzed and compiled by FreeSky GeoData editorial monitoring desk.

The Normalized Difference Vegetation Index, NDVI, is the workhorse of remote sensing. It turns satellite imagery into a simple number between -1 and 1 that tells you how healthy vegetation is, and it powers everything from crop monitoring to drought assessment. The good news is that you can calculate NDVI yourself in QGIS, free software, using free Sentinel-2 data, in about 20 minutes. This guide walks through the whole process: downloading the data, loading the right bands, running the calculation, and turning the result into a map you can share. No coding is required.

NDVI is based on a simple observation: healthy vegetation reflects a lot of near-infrared light and absorbs most red light, while stressed vegetation, bare soil, and water behave differently. The index is calculated as the near-infrared band minus the red band, divided by the near-infrared band plus the red band. The result ranges from -1 to 1. Values above 0.6 usually indicate dense, healthy vegetation, values between 0.2 and 0.5 indicate sparse or stressed vegetation, values near zero indicate bare soil or rock, and negative values indicate water. Because the formula is a ratio, it partly cancels out differences in illumination and atmospheric conditions, which is why NDVI is so robust across different dates and locations. Understanding the formula helps you interpret the map instead of just admiring the colours.

Start by getting the data. The easiest route is the Copernicus Browser, where you can search for your area of interest, filter by cloud cover below 10 percent, and download the Sentinel-2 scene. You need two bands: Band 4, the red band at 10-metre resolution, and Band 8, the near-infrared band, also at 10 metres. Download the bands as GeoTIFF files, or download the whole scene and extract the two bands. Alternatively, use the Semi-Automatic Classification Plugin in QGIS, which can download Sentinel-2 data directly and handles the band selection for you. Whichever route you choose, make sure both bands cover exactly the same area and have the same resolution, or the calculation will fail or produce a misaligned result.

Open QGIS and load both bands using the Data Source Manager or by dragging the files into the map. Open the Raster Calculator from the Raster menu. Enter the NDVI formula using the band names QGIS assigns, for example: ("Band8@1" - "Band4@1") / ("Band8@1" + "Band4@1"). Set the output layer to a new GeoTIFF file, and set the output extent and resolution to match the input bands. Click OK, and QGIS will produce a new raster with values from -1 to 1. The result will look grey at first, because QGIS applies a default greyscale rendering. That is normal, and the next step is to make it readable. If the calculation fails, check that both bands have the same coordinate reference system and the same extent; mismatched extents are the most common cause of errors.

Double-click the NDVI layer to open its properties, go to Symbology, and change the render type to Singleband pseudocolor. Choose a colour ramp that makes sense: the classic NDVI palette runs from red for low values through yellow to dark green for high values. Set the classification to five classes with manual breaks at -0.1, 0.1, 0.3, and 0.5, which roughly separate water, bare soil, sparse vegetation, moderate vegetation, and dense vegetation. Add a legend, a scale bar, and a north arrow in the Print Layout, and export the map as a PDF or image. When you read the map, look for patterns rather than individual pixels: a field that is greener than its neighbours may be irrigated, while a patch of low NDVI inside a healthy field may indicate a pest problem or a drainage issue. Compare NDVI maps from different dates to track growth and stress over the season.

What is a good NDVI value? Above 0.6 is dense healthy vegetation, 0.2 to 0.5 is sparse or stressed vegetation, and near zero is bare soil. Which Sentinel-2 bands do I need? Band 4 for red and Band 8 for near-infrared, both at 10-metre resolution. Do I need to correct for atmosphere? For a quick map, no. For comparing dates precisely, use atmospherically corrected data, labelled Level-2A. Why is my NDVI map all one colour? Check that the formula used the correct bands and that the styling uses a pseudocolor render with appropriate class breaks. Can I calculate NDVI for a farm? Yes, NDVI is widely used for crop monitoring, and Sentinel-2's 10-metre resolution is fine for field-scale work.

πŸ“Œ EXPLORE NEXT IN GIS
QGIS vs ArcGIS Pro: Which GIS Should You Learn in 2026?
⏱️ 3 Min Read Continue Story βž”
ED
FreeSky GeoData Editorial Desk Editorial Team Research & Editorial Team

Editorial team curating briefings and research summaries for this publication.

← PREVIOUS STORY QGIS vs ArcGIS Pro: Which GIS Should You Learn in 2026? #GIS NEXT STORY β†’ How to Create a Choropleth Map in QGIS: Step-by-Step Guide #Maps
βœ“ Reel link copied to clipboard!

</> Embed on Your Website

Copy and paste this snippet into any article, forum, or website:

Share with Friends

πŸ’¬ WhatsApp ✈️ Telegram 𝕏 Share