Confidence Interval Calculator for a Mean or a Proportion

Calculate a confidence interval for a mean from its summary or for a proportion with the Wilson method.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Confidence Interval Calculator for a Mean or a Proportion and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Confidence Interval Calculator for a Mean or a Proportion does

    Calculate a confidence interval for a mean from its summary or for a proportion with the Wilson method.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

For a mean, enter the sample mean, standard deviation and sample size. For a proportion, enter the number of successes and the sample size. Choose the confidence level. The calculator gives the standard error, the critical value, the margin of error and the interval.

Mean

Interval = mean ± t × s ÷ √n with n − 1 degrees of freedom. The t value comes from Student's t distribution and is larger than the normal value for small samples.

Proportion

The Wilson score interval is more reliable than the simple Wald interval, especially for small samples or proportions near 0 or 1. The tool shows both.

Reading an interval

A 95% confidence interval means that if the study were repeated many times, about 95% of the intervals would contain the true value. It does not say that the true value has a 95% chance of lying in this particular interval.

Worked example

A mean of 52 with a standard deviation of 8 from 40 observations has a 95% interval of 49.44 to 54.56. 18 successes out of 40 give a Wilson interval of 30.7% to 60.2%.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

What confidence level should I use?

95% is standard. 99% gives a wider interval.

Why Wilson?

It keeps the interval inside 0 to 100% and works for small samples.

What affects the width?

The sample size, variability and the confidence level.

Is the sample size large enough?

Larger samples give narrower intervals.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages