⚡
usefultools.dev
CI

Confidence Interval Calculator

NEW

Confidence interval calculator for a mean (z or t) or a proportion (Wilson and Wald): margin of error, critical value and interval at 80% to 99.9% or a custom level.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

95% confidence interval[46.6978, 53.3022]
Margin of error
± 3.3022
Critical value t* (df = 24)
2.063899
Standard error
1.6
Mean x̄
50
s
8
n
25

x̄ ± t* × s/√n = 50 ± 2.063899 × 8/√25

⚡

Quick Examples

Typical inputs and the results this tool produces.

Mean (t)
x̄ = 50, s = 8, n = 25, 95%, t
[46.6978, 53.3022], ± 3.3022, t* = 2.0639
Mean (z)
x̄ = 100, σ = 15, n = 36, 95%, z
[95.1001, 104.8999], ± 4.8999, z* = 1.959964
Proportion
8 successes in 10, 95%
Wilson [0.4902, 0.9433]
Raw data
12 15 11 14 13 16 12 15, 95%, t
x̄ = 13.5, s = 1.7728, [12.0179, 14.9821]
📖

Overview

A confidence interval gives a range of plausible values for a population mean or proportion based on a sample. This confidence interval calculator works for both: enter a mean, a standard deviation and a sample size, or the number of successes out of n, and pick a confidence level from 80% to 99.9% or type your own.

For a mean the tool uses the z critical value when the population standard deviation is known and Student's t when you only have the sample standard deviation. You can also paste a raw list and let it find the mean, s and n. For a proportion it shows the Wilson score interval next to the simple Wald interval.

Results include the margin of error, standard error and critical value, and everything runs locally in your browser.

Why use this tool?

  • Mean intervals with z or t, chosen by you
  • Wilson and Wald intervals for proportions side by side
  • Paste raw data to get the mean, s and n automatically
  • Critical value, standard error and margin of error shown
  • Calculated in your browser; data is not uploaded
⭐

Features

z

z or t for the mean

Use z when σ is known and t with n − 1 degrees of freedom when you only have the sample SD.

📊

Proportion intervals

Wilson score and Wald intervals from successes and n, with a note when Wald limits fall outside 0 to 1.

🎚️

Any confidence level

Choose 80%, 90%, 95%, 99% or 99.9%, or enter a custom level from 50% up to just below 100%.

📋

Raw data input

Paste a list of numbers and the sample mean, SD (n − 1) and count are calculated for you.

🧮

Critical values

z* and t* are computed from the inverse normal and Student t distributions, not looked up in a short table.

📐

Formula shown

The interval formula is written with your numbers so you can check it by hand.

🛠️

How to Use

1

Pick mean or proportion

Choose what you want an interval for and set the confidence level.

2

Enter your data

Type summary values or paste a raw list for a mean; enter successes and n for a proportion.

3

Choose z or t

For a mean, select Population σ known (z) or Sample SD (t).

4

Read the interval

Copy the interval and check the margin of error, critical value and formula.

🤔

Frequently Asked Questions