Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
podcast
Filter by Categories
ArcGIS Pro
GDAL
GeoJson
Map
Python
QGIS
Uncategorized

4 ways to calculate the area of polygons using QGIS

How to calculate the area of polygons using QGIS

If you are just getting started with QGIS and or GIS take the time to check out our archive of podcast episodes!

To calculate the area of polygons in a shapefile using QGIS, you can use the following steps:

  1. Open QGIS and load the shapefile containing the polygons that you want to calculate the area for.
  2. Select the layer containing the polygons in the Layers panel.
  3. Click the Field Calculator button in the Attributes toolbar.
  4. In the Field Calculator dialog, select the field that you want to use to store the calculated area values. If you want to create a new field, click the New Field button and enter a name and data type for the field.
  5. In the Expression field, enter the following expression: $area. This will calculate the area of each polygon in the shapefile.
  6. Click the OK button to calculate the area for each polygon and store the values in the selected field.

You can then view the calculated area values for each polygon by opening the attribute table for the layer.

But as always in QGIS there is more than one way of doing pretty much anything so here are a few other options

Want to say ahead of the GIS curve? listen to our podcast!

Using the Measure Area tool to calculate the area of polygons

You can use the Measure Area tool in the Advanced Digitizing toolbar to manually measure the area of individual polygons. To do this, select the Measure Area tool and then click on the polygon whose area you want to measure. The area will be displayed in the Measurements panel.

  1. Open QGIS and load the data containing the polygons that you want to measure.
  2. Select the Measure Area tool in the Advanced Digitizing toolbar.
  3. Click on the polygon whose area you want to measure. The area will be displayed in the Measurements panel.

Using the Statistics for Layer tool to calculate the area of polygons

You can use the Statistics for Layer tool in the Processing Toolbox to calculate the area for all polygons in the layer. To do this, open the Processing Toolbox, search for the Statistics for Layer tool, and select it. Then, specify the input layer and the field that you want to use to store the calculated area values. Click the Run button to calculate the area for all polygons in the layer.

  1. Open QGIS and load the shapefile containing the polygons that you want to measure.
  2. Open the Processing Toolbox by clicking the Processing menu and selecting Toolbox.
  3. In the Toolbox, search for the Statistics for Layer tool and select it.
  4. In the Statistics for Layer dialog, specify the input layer and the field that you want to use to store the calculated area values.
  5. Click the Run button to calculate the area for all polygons in the layer.

Using the Field Calculator to calculate the area of polygons

You can use the Field Calculator to calculate the area of polygons using a different expression. For example, you can use the area($geometry) expression to calculate the area in square meters.

  1. Open QGIS and load the shapefile containing the polygons that you want to measure.
  2. Select the layer containing the polygons in the Layers panel.
  3. Click the Field Calculator button in the Attributes toolbar.
  4. In the Field Calculator dialog, select the field that you want to use to store the calculated area values. If you want to create a new field, click the New Field button and enter a name and data type for the field.
  5. In the Expression field, enter the following expression: area($geometry). This will calculate the area of each polygon in the shapefile in square meters.
  6. Click the OK button to calculate the area for each polygon and store the values in the selected field.

Recommended podcast episodes that will help you understand more about QGIS

About the Author
I'm Daniel O'Donohue, the voice and creator behind The MapScaping Podcast ( A podcast for the geospatial community ). With a professional background as a geospatial specialist, I've spent years harnessing the power of spatial to unravel the complexities of our world, one layer at a time.

Leave a Reply