geoprimsField-grade geospatial math

H3 parent cell

The coarser cell that contains a cell (cellToParent), and the cell's position among that parent's children.

Go the other way: H3 children cells →

852a8473fffffff

The parent is 852a8473fffffff.

Child position
Provenance
Computed by
indexing.h3.parent 1.0.0, core 0.1.0
Model
H3 v4 hierarchy (h3o 0.11)
Accuracy
Identical to H3 C
Notes
None
Cites
Uber Technologies and the H3 contributors, H3: A Hexagonal Hierarchical Geospatial Indexing System (API reference v4); Hydronium Labs, h3o: a Rust implementation of H3

Something look off?

Your values

Showing an example. Change anything.
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: H3 v4 hierarchy (h3o 0.11)

Accuracy: Identical to H3 C

When to use this: Use this when rolling detail up: the coarser cell that contains a cell, and the child position it occupies within that parent. It is how a fine aggregation is summarized, and how cells at mixed resolutions are compared on common ground. The child position it reports is what lets you tell siblings apart within a parent, which matters when building keys or checking that a set is complete before compacting it.

Limitations: H3's hierarchy is approximate: a child is not wholly inside its parent, so rolling up near boundaries moves a little area between parents. The parent's resolution must be coarser than the cell's, and a chain of parents accumulates that approximation. Because the hierarchy is approximate, a point near a cell boundary can belong to a parent that does not contain its own cell's center, so rolled-up counts shift slightly between levels. Resolution 0 has no parent.

Worked example: Parent of 892a8471487ffff at resolution 5. Source: add-spatial-indexing-and-raster scenario: 852a8473fffffff.

You enter

Cell
892a8471487ffff
Resolution
5

You get

Parent
852a8473fffffff
Child position
911

Review: Not yet independently reviewed by a GIS professional.

Last verified: 2026-09-18, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.0.0, core 0.1.0. See this tool in the verification report.

Changes

Checked against: 20 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources

Terms

H3: H3 hexagonal hierarchical index
A global grid of hexagons (and 12 pentagons) at 16 resolutions, each cell about one-seventh the area of its parent, named by a 15-character index. Source: H3 hexagonal index

H3 — H3 hexagonal hierarchical index

A global grid of hexagons (and 12 pentagons) at 16 resolutions, each cell about one-seventh the area of its parent, named by a 15-character index.

Source: H3 hexagonal index