Every interpolated surface is an act of disciplined guessing: a hundred measured points, a million unmeasured cells, and a rule for filling the silence between the samples. QGIS offers two native rules, inverse distance weighting and triangulated networks, and both share a trait their users rarely notice: the rule's shape is chosen by you, in advance, by feel. Kriging is the third rule, the one that measures its shape from the data itself, and it is the interpolation serious spatial statistics is built on. It is also, famously, not in QGIS's native toolbox. This guide explains where kriging actually lives in a QGIS installation, what its central idea, the semivariogram, contributes, and how to decide, honestly, whether your surface needs it.
Home / GIS and Open Map Data for Beginners
Kriging in QGIS: Interpolation With a Semivariogram, and When IDW Is Enough

Photo: Despoina Apostolidou / Pexels
Beyond the Guess: The Kriging Checklist
Check off each step as you finish it. Your progress stays on this page.
0 of 7 complete
0% done
The Native Two, and What They Assume
QGIS's built-in interpolation (the Interpolation plugin and the Processing IDW and TIN algorithms) works like this. IDW predicts each cell as a weighted average of nearby samples, weights falling with distance raised to a power you choose, usually 2. TIN builds triangles between samples and interpolates across their faces, exact at the points and faceted between them. Both are honest tools with a shared soft spot: IDW's power parameter, the single number that decides how local the surface is, comes from the user's intuition. Set it high and the surface becomes a field of bullseyes around each sample; set it low and real variation smooths away. Nothing in the data arbitrates. Practitioners pick 2 because 2 is picked. That is the gap kriging walks into.
The Semivariogram: Letting the Data Set the Dial
Kriging begins by asking the samples a question IDW never asks: how does similarity actually decay with distance in this dataset? The instrument is the semivariogram: for pairs of sample points at every separation distance, plot half their squared difference against the distance, and the cloud of points traces a curve with three features every kriging user learns to read:
- The nugget: the curve's height at distance zero, the variation that exists at scales smaller than your sampling, plus measurement error.
- The range: the distance at which the curve flattens, beyond which samples no longer inform each other. Past the range, a point is a stranger.
- The sill: the plateau height, the dataset's overall variance.
Fitting a model curve (spherical, exponential, Gaussian are the standard shapes) through that cloud gives kriging its weights from evidence: the fitted model says how much each sample should count at each distance, for this phenomenon, in this place. Soil moisture, rainfall, ore grade, air pollution: each has its own spatial grain, and the semivariogram is where the grain becomes a number instead of a hunch. Kriging then predicts with those weights and, as its second gift, produces a prediction variance surface alongside the prediction: a map of how much the surface itself should be trusted, cell by cell. IDW cannot draw that map. It does not know what it does not know.

Where Kriging Lives in QGIS
Not in the native interpolation tools, a fact worth stating flatly because tutorials blur it. In a working QGIS installation, kriging arrives through three doors:
- The SAGA provider in Processing, whose geostatistics modules include kriging implementations that run on your point layer with the variogram parameters you supply or fit.
- The GRASS provider, whose geostatistical tooling (the v.krige tradition) brings kriging into the GRASS module set inside QGIS.
- The Smart Map plugin, a dedicated geostatistics plugin that wraps variogram fitting and kriging in a guided interface, the friendliest door for a first serious run.
All three ask the same of you: a point layer with a numeric value field, a decision about the variogram model, and a target grid. The plugins guide covers getting them installed and enabled. One honest caution from the tutorial literature deserves repeating here: a respected university tutorial on QGIS kriging documents its author hitting plugin failures and completing the exercise with an IDW fallback. Plugins in this corner of the ecosystem are maintained by small teams and break across versions. Verify your chosen door opens, on your data, before the deadline does it for you, and keep the IDW fallback warm without shame: it is what the literature itself does.
When IDW Is Enough: The Honest Rule
Kriging's superiority is conditional, and the conditions are checkable. Kriging earns its complexity when the samples are numerous enough to fit a variogram credibly (a few dozen points describe a curve poorly; a hundred or more begin to persuade), when the phenomenon has real spatial structure at the sampling scale (a range longer than the sample spacing), and when the prediction variance map will actually be read, by a regulator, a funder, a drilling decision. IDW is enough when samples are sparse, when the surface is exploratory (a first look, a teaching exercise, a conversation draft), or when the phenomenon's grain is finer than any sampling you can afford, in which case both methods are guessing and IDW guesses cheaper. The professional tell is not which method you used; it is whether you can say, in one sentence, why it was the right one for this dataset. "Kriging, because 340 samples fit a clean spherical variogram with a 900 meter range, and the client needed the variance map" is a sentence. "Kriging, because it is better" is a hope.
A Worked Judgment: Rainfall Over a Catchment
Make the decision concrete. A water study holds 132 rain gauges across a catchment, a decade of monthly totals, and a funder who will size a culvert from the resulting surface. The samples clear the credibility bar comfortably. Fit the variogram and the cloud resolves into a clean spherical shape: a modest nugget (gauge error and micro-scale weather), a range near 12 kilometers (storms here are regional affairs), a sill matching the data's variance. Kriging with that model produces the rainfall surface and, beside it, the variance map, which shows confidence pooling around the gauge clusters and draining toward the catchment's ungauged northeast corner. That corner is the deliverable's most honest feature: the funder sees not just a number for the culvert but the map of where the number is soft, and the recommendation writes itself, two more gauges in the northeast before the design is finalized. IDW would have produced a prettier, smoother, more confident-looking surface and none of that knowledge. The example generalizes in both directions: with 18 gauges instead of 132, the variogram fit would be a rumor, the variance map a decoration, and IDW with a stated power would be the honest tool. The method follows the data's ability to testify, and the analyst's job is to hear the testimony, not to prefer a witness.
Ordinary Kriging and Its Relatives, Named Once
The kriging of this guide, the default behind the providers' dialogs, is ordinary kriging: it assumes an unknown but constant mean across the study area and spends its effort on the spatial structure. The family is larger, and a working user should know the names exist even if the providers expose them unevenly: simple kriging assumes a known mean, rarely true outside textbooks; universal kriging models a trend across the area, elevation-driven rainfall being the classic case, and kriges the residuals; co-kriging brings in a second, denser variable, elevation again, to sharpen a sparse primary one. The names matter less than the shared skeleton: all of them stand on the variogram, all of them return a variance with the prediction, and all of them fail the same way when the samples are too few to testify. Choose the variant when the phenomenon demands it, and let the semivariogram, fitted and cross-validated, remain the court of appeal.
Reading a Kriged Surface
Two habits protect you from your own output. First, interrogate the edges: kriging near and beyond the convex hull of your samples extrapolates on thinning evidence, and the variance map, read alongside, will show the confidence draining away at the borders exactly where the prediction map looks just as colorful as the middle. Second, cross-validate: hold out a rotating share of samples, predict them, and measure the errors. A variogram model that cross-validates badly is a story the data declined to confirm, and refitting, or retreating to IDW with a clear conscience, beats publishing the prettier surface. The surfaces these methods produce feed real work: rainfall grids summarized over delineated watersheds, soil properties averaged over dissolved farm polygons with zonal statistics. The interpolation is the foundation under those products, and foundations are where honesty compounds.
Related Guides
If this page answered part of the question, these GIS and open data guides cover the rest of the same ground:
- Watershed Delineation in QGIS: From a DEM to a Basin Boundary: The main consumer of interpolated surfaces: basins that summarize rainfall and soil grids.
- The QGIS Python Console: Drive the Whole Application With Code: Running interpolations, and everything else, as repeatable scripts instead of dialog clicks.
- LiDAR in QGIS: Native Point Clouds From LAS to 3D: The other point-data world: millions of measured points instead of hundreds of samples.
- QGIS Raster Calculator: Band Math, Worked Expressions, and the Nodata Traps: The arithmetic layer for the surfaces interpolation produces.
Frequently Asked Questions
Does QGIS have kriging built in?
No. QGIS's native interpolation is IDW and TIN. Kriging is available through the SAGA and GRASS providers inside Processing, and through the Smart Map plugin. Any tutorial implying a native kriging button is blurring the provider distinction.
What is a semivariogram in plain terms?
A chart of how sample similarity decays with distance, built from your own data: pairs of points plotted by their separation and their difference. Its nugget, range, and sill describe the phenomenon's spatial grain, and kriging uses a model fitted to that chart to set its weights from evidence instead of a guessed power parameter.
When is IDW good enough?
When samples are sparse, the surface is exploratory, or the phenomenon varies at a finer scale than the sampling can capture. Kriging earns its complexity with ample samples, clear spatial structure, and a real use for its prediction variance map. The test is whether you can justify the choice for this dataset in one sentence.
What does kriging give me that IDW cannot?
Two things: weights derived from the data's own spatial structure via the semivariogram, rather than a user-chosen power, and a prediction variance surface, a map of the estimate's uncertainty. The second is often the decisive one for regulated or funded work.
My kriging plugin failed. What now?
You are in documented company: published tutorials record plugin failures and an IDW fallback. Check the provider route (SAGA or GRASS in Processing) as an alternative door, verify versions against your QGIS release, and if the deadline governs, run IDW and say so in the methods note.
Photo credits: Despoina Apostolidou (Pexels); Joseph Barrera (Pexels). Photos are served from this site; follow the credit to the library page for the original.