Prediction interval margin calculator
The Prediction interval margin calculator computes prediction interval margin from the relation margin = z s sqrt(1 + 1/n). It takes 3 inputs (z* value, sample sd, sample size) and returns the prediction margin. Because this is a pure mathematical or physical formula rather than a jurisdiction-specific rule, the result never changes over time: the same inputs always produce the same answer, so you can rely on it whether you are checking homework, sizing a design, or sanity-checking another tool. Enter your values in the fields below and the result updates instantly; you can also share a permalink that pre-fills the exact calculation, which is useful for teaching, reports, or collaboration. For example, with z* value = 2, sample sd = 5, sample size = 1, the prediction margin works out to 14.142136, and the worked example further down the page shows every step so you can follow the arithmetic and reproduce it by hand. The method is the standard form documented by NIST/SEMATECH e-Handbook of Statistical Methods, and the figure above each result carries the date it was last verified. This tool is general information and is not a substitute for professional engineering, medical, financial, or scientific advice; always check critical results against the primary source and your own judgement.
With z* value = 2, Sample SD = 5, Sample size = 1, the result is 14.142136.
Applies to: any numeric inputs. Method source: NIST/SEMATECH e-Handbook of Statistical Methods, checked 2026-06-22.
The formula
margin = z s sqrt(1 + 1/n)
Worked example
With z* value = 2, Sample SD = 5, Sample size = 1:
- margin = z s sqrt(1 + 1/n)
- Prediction margin = 14.142136
This worked example is one of the automated golden-value tests this calculator must pass before it can publish.
What this assumes
- Inputs are real numbers in the units shown.
- The result is the exact value of margin = z s sqrt(1 + 1/n); general information, not professional advice.
Frequently asked questions
What formula does this use?
margin = z s sqrt(1 + 1/n), the standard form documented by NIST/SEMATECH e-Handbook of Statistical Methods.
Does the result ever change over time?
No. This is a pure formula with no external rate, so the same inputs always give the same result.
Official sources and verification
- Method: NIST/SEMATECH e-Handbook of Statistical Methods, checked 2026-06-22.
Reviewed by the CalculatorHub team, edited by James Graham, 2026-06-22. See our methodology. General information, not professional advice.