Calculating area of newly added polygons on same layer?

You can use the AutoFields plugin, which solves exactly that issue.

Go to the plugin's docked window, select your polygon layer, choose the 'Area' field from the list of existing fields, choose the expression 'Area' and click on Save AutoFields.

enter image description here

Now QGIS will maintain your Area field up-to-date when you create new polygons or edit existing ones (you can also calculate the expression on already existing features if you like).

enter image description here

The AutoFields plugin saves the Area data into your data source file, so you can see it even if you change the QGIS project or load the data into another GIS software.

Watch this demonstration video showing how to keep other geometric properties up-to-date.


There are 2 approaches:

1/ select all area's which has no value ("Area" is null) and do the calculation just on the selected ones. Check 'only update XXX selected features' and 'update existing field'

enter image description here

2/ You can make a virtual field with the expression $area. Every time you add a feature the area will be calculated. Warning: a virtual field is project only. If you want to distribute the shapefile to another, you have to save it as a new one.

enter image description here