HomeCalculatorsMathNumerical CalculusSpline Interpolation Calculator
Math calculator

Spline Interpolation Calculator

Natural cubic spline through tabulated (x, y). Same engine as Numerical Interpolation. Not Akima, PCHIP, or regression. Runs locally.

Instant result
Result

Enter values to calculate.

Inputs
Mode
Formula
Trust summary Engine tested · Specification checked · 13/13 tests · Production surface contract 4/4 · v1.1.0
Input interpretation
Enter values to calculate.
Result
Model
y at x from tabulated points by a natural cubic spline.
Scope
Unique x; sorted internally
Verification
Engine tested · 13/13 tests · Production surface contract 4/4 · Specification checked · v1.1.0
Named expert review
Optional · Not performed
Specification basis
  • ISO 80000-2:2019 Quantities and units — Mathematics
Specification basis
Evidence
4 golden · 2 boundary · 7 property · Production surface contract 4/4 · Artifact integrity PASS
Production
Embedded snapshot: unpublished · Build schema 1.1.0 ready · Semantic contract ✓ · Attestation report not published on origin · Live production status STALE (1 capability; 163 remain CURRENT) @ 2026-09-19T00:00:17.039Z
Semantic contract
PASS

Formulas

Core equations used by this calculator.

Natural endsS″(x₀) = S″(xₙ) = 0
Piecewise cubicSᵢ(x) = aᵢ + bᵢ(x−xᵢ) + cᵢ(x−xᵢ)² + dᵢ(x−xᵢ)³
iPoints as x,y; x,y (semicolon-separated). Unique x, sorted internally. Table ≤ 100 points. x outside the table needs extrapolate=true. Not clamped and not not-a-knot.

How to use

1

Enter tabulated points

At least two pairs with unique x. Linear and Lagrange live on the canonical interpolation page.

2

Evaluate at x

The spline passes through every node. Outside [x_min, x_max] requires extrapolate.

Example calculations

Common configurations with formula and result.

ϟ

Two-point = linear

(0,0) and (10,20) at x=5

S reduces to lerp
10
ϟ

Three-point natural spline

(0,0), (1,1), (2,0) at x=0.5

M₁ = −3
0.6875

Spline Interpolation calculator specification

Version 1.1.0 · Engine tested

Calculation status

Review policy · Evidence

Definition
A natural cubic spline is a piecewise cubic with continuous S and S′ and S″=0 at the ends. This page is method=spline on math.numerical.interpolate. Two points reduce to linear. Not a second interpolator. Not Akima, PCHIP, or least-squares regression.
What it calculates
y at x from tabulated points by a natural cubic spline.
Inputs
  • x
  • points?
  • x0?
  • y0?
  • x1?
  • y1?
  • extrapolate?
Outputs
  • y
  • n
  • in_range
  • extrapolated
Formula
natural cubic spline (S″=0 at ends)
Assumptions
  • Unique x; sorted internally
  • Natural ends, not clamped
  • Not Akima / PCHIP / regression
Units
  • dimensionless
Boundary conditions
  • x outside table without extrapolate → VALUE_OUT_OF_RANGE
  • duplicate x → INVALID_INPUT
  • unknown method (including akima) → INVALID_MODE
Example
spline (0,0)(1,1)(2,0) x=0.5 → 0.6875
Validation cases

2 published on this page · 13/13 tests · Production surface contract 4/4 · View evidence

  • points=0,0;1,1;2,0 x=0.5 → y=0.6875
  • method=akima points=0,0;1,1 x=0.5 → INVALID_MODE
Specification basis
  • ISO 80000-2:2019 Quantities and units — Mathematics
Calculation version
1.1.0
}

Frequently asked questions

Key distinctions behind the calculation.

Is this a second interpolation engine?

No. It is method=spline on math.numerical.interpolate, the same engine as /calc/math/numerical-interpolation.

Is this Akima, PCHIP, or regression?

No. This seed is a natural cubic spline only. Clamped, not-a-knot, Akima, PCHIP, and least-squares fit stay out of scope.