Spline Interpolation Calculator
Natural cubic spline through tabulated (x, y). Same engine as Numerical Interpolation. Not Akima, PCHIP, or regression. Runs locally.
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
- 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.
How to use
Enter tabulated points
At least two pairs with unique x. Linear and Lagrange live on the canonical interpolation page.
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
Three-point natural spline
(0,0), (1,1), (2,0) at x=0.5
Spline Interpolation calculator specification
Version 1.1.0 · Engine tested
- Engine tested 13/13 tests · Production surface contract 4/4
- Named expert review Not performed
- Calculation version 1.1.0
- 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
Related tools
Other calculators in this family: Brent Method Calculator, Definite Integral Calculator, Gauss Quadrature Calculator, Golden Section Search Calculator, Numerical Derivative Calculator, Numerical Interpolation Calculator, Numerical Root Calculator, One-Dimensional Optimization Calculator . Explore all Numerical Calculus.
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.