Confidence interval calculator

A 95% confidence interval is a procedure that captures the true mean 95% of the time — not a 95% chance that the true mean is in this particular interval.

Margin of error
1.611 467 1
≈ Rounded Confidence interval
Lower bound
66.888 532 92
Upper bound
70.111 467 08
Standard error
0.822 192 19
Interval width
3.222 934 2
Margin as a share of the mean
2.353 %
Show the working
  1. Sample mean = 68.5
  2. Sample standard deviation = 5.2
  3. Sample size = 40
  4. Confidence level = 1.959 96
  5. Standard error = 5.2 / sqrt(40) = 0.822 192
  6. Margin of error = 1.959 96 * 0.822 192 = 1.611 47
  7. Lower bound = 68.5 - 1.611 47 = 66.8885
  8. Upper bound = 68.5 + 1.611 47 = 70.1115
  9. Interval width = 2 * 1.611 47 = 3.222 93
  10. Margin as a share of the mean = 68.5 != 0 ? 1.611 47 / abs(68.5) * 100 : 0 = 2.352 51

Values are shown to six significant figures here; the arithmetic itself runs on exact fractions and is only rounded where a number is printed.

Scenarios & local history

Compare a saved scenario

Recent calculations

    The formula

    • margin of error = z x sd / sqrt(n)
    • interval = mean +/- margin

    This uses the normal z value. For small samples with an unknown population variance the t distribution is correct and gives a wider interval.

    Quadrupling the sample size halves the margin of error, which is why big surveys stop getting much better.

    Related calculators

    Settings

    Theme

    System follows your operating system and changes with it.

    Text size
    High contrast

    Maximises text and border contrast and removes the grid background.

    Graph-paper background

    Round to
    Notation
    Thousands separators
    Decimal mark
    Nearest fraction

    Shows the result as the nearest tape-measure fraction, with the error it costs.


    Accessibility & interaction
    Reduce motion Stops interface animations even when the operating system does not.
    Underline links Keeps links visually distinct without relying on colour.
    Larger touch targets Makes buttons and form controls easier to tap.
    Shorter reading lines Limits article width for easier scanning.
    Monochrome display Removes colour as an information cue.
    Always-visible focus Makes the keyboard focus ring persistent and stronger.
    Verbose screen-reader results Announces the complete conversion equation.
    Sticky action bars Keeps converter and calculator actions within reach.
    Select values on focus Replaces a value immediately when you start typing.
    Left-handed mobile layout Moves key mobile actions toward the left thumb.

    Your data

    Settings, recent conversions and favourites live in this browser only. Nothing is sent anywhere.

    Offline library