Principal Curvature Calculator

Find the two principal curvatures from mean curvature and Gaussian curvature, with a real-root check, reconstruction steps, and surface examples.

Enter your values

SURFACE GEOMETRY

Enter mean and Gaussian curvature

At the same smooth surface point, enter mean curvature H and Gaussian curvature K. Use matching units: H has inverse-length units and K has squared inverse-length units.

The principal curvatures are the roots of κ² − 2Hκ + K = 0. Real values exist only when H² − K ≥ 0.

Press Enter to calculate
Examples
Overview

What is a principal curvature calculator?

At a regular point on a smooth surface, the principal curvatures κ₁ and κ₂ are the extreme values of normal curvature in perpendicular principal directions. Their mean is H = (κ₁ + κ₂)/2, and their product is Gaussian curvature K = κ₁κ₂. This calculator reverses those relationships: it solves κ² − 2Hκ + K = 0 to recover the two principal curvatures from H and K.

Important terms

Principal curvature
One of the two signed normal curvatures in the principal directions at a regular surface point. Their order is conventional; κ₁ is not necessarily the larger value.
Mean curvature H
The average H = (κ₁ + κ₂)/2 under the convention used by this calculator. Some references omit the factor 1/2, so confirm the definition before entering a value.
Gaussian curvature K
The product K = κ₁κ₂. It has squared inverse-length units and is unchanged when the surface normal is reversed.
Discriminant
The quantity H² − K under the square root. It must be nonnegative for real principal curvatures to exist.

When this method is useful

  • Recover principal curvatures when a problem supplies H and K.
  • Check whether a proposed pair of mean and Gaussian curvatures is compatible with real surface bending.
  • Compare spherical, cylindrical, flat, and saddle point curvature patterns.
  • Verify the identities that connect mean, Gaussian, and principal curvature.
Formula

Formula and variables

κ1,2=H±H2−K,κ2−2Hκ+K=0\kappa_{1,2}=H\pm\sqrt{H^2-K},\qquad \kappa^2-2H\kappa+K=0
H
Mean curvature, with inverse-length units
K
Gaussian curvature, with squared inverse-length units
κ₁, κ₂
The two real principal curvatures, in inverse-length units
H² − K
The discriminant term; it must be nonnegative for real roots

Substituting H = (κ₁ + κ₂)/2 and K = κ₁κ₂ gives the quadratic whose roots are the principal curvatures. The quadratic formula simplifies to H ± √(H² − K). The inputs must refer to the same point, use compatible units, and use the average convention for H.

Domain note: The calculator returns real curvatures only. If H² − K is genuinely negative, the supplied pair does not produce real principal curvatures. Roundoff-sized negative values near zero are treated as zero. The tool reconstructs curvatures from supplied invariants; it does not differentiate a surface parameterization or determine its normal orientation.

How it works

How to use this calculator

  1. 1

    Enter mean curvature H and Gaussian curvature K at the same regular surface point.

  2. 2

    Compute the discriminant term D = H² − K.

  3. 3

    If D < 0, there are no real principal curvatures for those inputs; otherwise calculate √D.

  4. 4

    Evaluate κ₁ = H + √D and κ₂ = H − √D.

  5. 5

    Check that their average is H and their product is K.

Worked examples

Step-by-step examples

Example 1

Problem: A sphere of radius 5 m has outward-normal mean curvature H = 0.2 m⁻¹ and Gaussian curvature K = 0.04 m⁻². Find its principal curvatures.

Substitution: D = H² − K = (0.2)² − 0.04 = 0; κ₁, κ₂ = 0.2 ± √0.

Result: κ₁ = κ₂ = 0.2 m⁻¹.

The repeated root means equal principal curvatures, as expected at every point on a sphere. The checks give (κ₁ + κ₂)/2 = 0.2 and κ₁κ₂ = 0.04.

Example 2

Problem: A cylinder has H = 0.125 m⁻¹ and K = 0 m⁻².

Substitution: D = 0.125² − 0 = 0.015625; √D = 0.125.

Result: κ₁ = 0.25 m⁻¹, κ₂ = 0 m⁻¹.

The zero Gaussian curvature indicates one principal direction is locally straight; the nonzero curvature is twice H.

Example 3

Problem: A saddle point has H = 0 and K = −0.25 m⁻².

Substitution: D = 0² − (−0.25) = 0.25; √D = 0.5.

Result: κ₁ = 0.5 m⁻¹, κ₂ = −0.5 m⁻¹.

Opposite principal-curvature signs produce negative Gaussian curvature, while their average cancels to zero.

Example 4

Problem: Test H = 1 m⁻¹ and K = 2 m⁻².

Substitution: D = 1² − 2 = −1.

Result: No real principal curvatures.

The discriminant condition fails. Recheck the supplied values, their units, and the convention used for H.

Method knowledge

Rules, edge cases, and related ideas

Use the matching mean-curvature convention

This tool defines mean curvature as the average (κ₁ + κ₂)/2. If a source defines it as the sum, divide that source's value by two before entering H.

Check dimensions before calculating

If curvature is measured in m⁻¹, H is in m⁻¹ and K is in m⁻². Subtracting H² and K is dimensionally valid only when the units match this relationship.

Read the discriminant geometrically

H² − K = ((κ₁ − κ₂)/2)². It is nonnegative for real principal curvatures and vanishes exactly when they are equal.

Edge cases and limitations

  • When H² = K, the two principal curvatures are equal to H.
  • When K = 0 and H ≠ 0, the curvatures are 2H and 0.
  • When H = 0 and K < 0, the curvatures are equal in magnitude and opposite in sign.
  • When H = K = 0, both principal curvatures are zero.
  • A genuinely negative H² − K produces no real answer; only tiny floating-point residuals near zero are clamped.

How this differs from a related concept

The mean-curvature calculator averages known principal curvatures, and the Gaussian-curvature calculator multiplies them. This calculator performs the inverse reconstruction: it uses H and K to solve for κ₁ and κ₂. All three tools describe curvature at one point and rely on a consistent convention and matching units.

Interpretation

Understand the result

A positive discriminant gives two distinct real principal curvatures. A zero discriminant gives a repeated value κ₁ = κ₂ = H, as at an umbilic point such as a sphere. A negative discriminant cannot produce real principal curvatures from the stated H and K. The sign of H depends on the chosen surface normal, but K does not; reversing the normal changes both recovered curvatures to their negatives while preserving their product.

Common mistakes

  • Entering a mean-curvature sum when the tool expects the average.
  • Using H and K measured at different surface points.
  • Entering the same unit for H and K even though K has squared inverse-length units.
  • Treating a negative discriminant as a rounding issue when its magnitude is meaningful.
  • Assuming the labels κ₁ and κ₂ impose a fixed order; the two roots can be swapped.

Frequently asked questions

How do I find principal curvatures from H and K?

Solve κ² − 2Hκ + K = 0. Its roots are κ₁,₂ = H ± √(H² − K).

When are the principal curvatures real?

Exactly when H² − K is nonnegative. A negative value means no real pair satisfies the stated invariants.

Why are both curvatures equal for a sphere?

At a sphere point, symmetry makes the two principal curvatures equal. Therefore H² = K and the discriminant is zero.

What if my textbook defines mean curvature without dividing by two?

Convert its value to the average convention first: H here equals half of the sum convention used by that source.

Which units should I enter?

Use inverse length for H and squared inverse length for K, for example m⁻¹ and m⁻². Their numerical scales must be consistent.

References & technical sources

Keep calculating

Related calculators