This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /

How to Add Coordinates in QGIS

Updated on:
June 8, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to extract and store latitude and longitude coordinates in QGIS.

Quick summary

In QGIS, you can add coordinates to a point layer's attribute table by using the Field Calculator with $x and $y expressions, or by running the Add X/Y Fields to Layer tool from the Processing Toolbar. Both methods populate Longitude and Latitude fields directly in your layer's attribute data without requiring external plugins.


Steps

  1. Right-click your point layer in the Layers Panel and select Open Attribute Table.
  2. Click Toggle Editing (pencil icon) at the top-left corner of the dialog box.
  3. Select Field Calculator from the toolbar.
  4. Check Create a new field in the Field Calculator dialog.
  5. Set the Output field name to Longitude and the output field type to Decimal (real).
  6. Enter $x in the Expression box.
  7. Click OK to save the Longitude field.
  8. Repeat the process, setting the Output field name to Latitude and the field type to Decimal (real).
  9. Enter $y in the Expression box.
  10. Click OK to save the Latitude field.
  11. Open the Attribute Table again to verify that Longitude and Latitude coordinates were successfully added.
  12. Alternatively, click a point shapefile layer in the Layers Panel to use the Processing Toolbar method.
  13. Select the Toggle Editing button in the top menu.
  14. Click the Add Point tool to begin placing points on the map.
  15. Hover your cursor over the map and click to place a point.
  16. Enter an ID number for identification, then click OK. Repeat to add more points.
  17. Go to the Processing Toolbar and search for Add X/Y Fields to Layer, then select it.
  18. Choose the input layer in the tool dialog.
  19. Select your coordinate system.
  20. Click Run to execute the tool.
  21. Go to the added layer in your Layers panel.
  22. Right-click it and select Open Attribute Table to confirm the results.
  23. Verify that points with coordinates have been successfully added to your layer.

📌 Why this matters

Adding coordinates to a QGIS point layer is a foundational GIS skill that enables spatial analysts, researchers, and field data teams to export, share, and analyze precise geographic locations. QGIS provides two built-in methods — the Field Calculator and the Add X/Y Fields to Layer processing tool — giving users flexible, code-free workflows to extract latitude and longitude directly from vector geometries. Storing coordinates as attribute fields makes data immediately compatible with spreadsheets, databases, and mapping platforms that require explicit X/Y columns. This capability is essential for any project involving site surveys, asset tracking, environmental monitoring, or geospatial data pipelines.
Your product deserves an interactive demo
Start free
Platform
Interactive Demos
Sandbox Demos
Hubs
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it