How many people to survey

Confidence interval calculator

Enter a survey percentage and the number of responses. You get the range around it at 90%, 95% or 99% confidence, calculated by the Wilson method.

  • Checked against reference values
  • Free, no sign-up
  • Nothing leaves your browser

Parameters

Percentage of the sample with the characteristic of interest, from 0 to 100

Number of respondents surveyed

Assumptions and limitations

  • The calculator is for a proportion (a percentage), not for a mean.
  • A simple random sample is assumed; the interval does not cover bias from who chose to respond.
  • The Wilson method works for small samples and for 0% or 100%; near the edges the interval is not symmetric around the result.
Confidence interval
—
Enter data

Collect real answers in a SurveyNinja survey and see them in charts in the report.

Use this template See the questions first

Data is not stored — calculation runs in your browser.

Ready-made template

Do it with your own respondents

The “Market research survey” template already has the questions. Put in your company name, share the link and watch the answers come in.

  1. Copy the template: the questions are written
  2. Share it by link, QR code or a widget on your site
  3. Read the results in the report with charts

New accounts get 14 days of Premium features, no credit card.

What is a confidence interval?

A confidence interval is a range around a sample result, built by a method that captures the true population value in a chosen share of repeated samples, usually 95%. It shows how precise a survey percentage is: 60% measured on 400 responses gives a 95% interval of 55.1% to 64.7%. Larger samples give narrower intervals. This calculator uses the Wilson score method.

How the interval is calculated

  • Wilson score interval

    Centre = (p + z²/2n) / (1 + z²/n); half-width = z / (1 + z²/n) × √(p(1−p)/n + z²/4n²). Bounds = centre ± half-width. p is the observed share, n the sample size, z the critical value (1.645 for 90%, 1.96 for 95%, 2.576 for 99%).

  • Why not p ± z√(p(1−p)/n)

    The simple formula gives an interval of zero width at 0% and 100% and can fall below 0% or above 100% for small samples. The Wilson interval stays within 0–100% and covers the true value closer to the stated rate.

  • How to read it

    Report the result with its interval: "60% (95% CI: 55.1%–64.7%)". A wide interval means the sample is too small for fine distinctions.

  • Confidence level

    Higher confidence gives a wider interval. 95% is the usual choice; 99% is used when missing the true value would be costly.

Confidence interval examples

  1. Proportion in sample

    • p = 60%, n = 400, 95% confidence

    95% CI: 55.1%–64.7%. Intervals built this way contain the true population share in about 95% of repeated samples.

  2. Narrowing the interval

    • Increase sample size

    Quadrupling n roughly halves the width of the interval. Plan a larger n for a more precise estimate.

  3. NPS promoter proportion

    • "9–10" proportion = 50%, n = 200, 95% CI

    CI for the promoter proportion: 43.1%–56.9%. NPS is a difference of two proportions; its own interval needs a separate calculation or a bootstrap.

  4. Small proportion (rare event)

    • p = 5%, n = 400, 95% confidence

    95% CI: 3.3%–7.6%. The interval is asymmetric: 1.7 points below the result and 2.6 points above it, because it cannot go below 0%.

  5. 99% confidence level

    • p = 50%, n = 500

    99% CI: 44.3%–55.7%, wider than the 95% CI of 45.6%–54.4%. Used when missing the true value would be costly.

  6. Comparing two proportions

    • Group A: 60% (n = 300). Group B: 45% (n = 300). Build a CI for each proportion

    CI A: 54.4%–65.4%, CI B: 39.5%–50.7%. The intervals do not overlap, so the difference is statistically significant at α = 0.05. Overlapping intervals would not prove the opposite; use a two-proportion test then.

The SurveyNinja ninja with survey templates

Next step

Read the answers in a report, not a spreadsheet

Charts are built for you from every answer. Share the report by link or export the answers to Excel, CSV or SPSS.

  • Ready questions or AI from a description
  • A link for your email or chat, a QR code or a widget on your site
  • Charts in the report, export to Excel, CSV and SPSS

Frequently asked questions

What is a confidence interval?

A range around a sample result built by a method that, over many repeated samples, captures the true population value in a chosen share of cases (usually 95%). For example, a 95% CI of 55%–65% comes from a procedure that is right about 95% of the time.

How does CI differ from margin of error?

The margin of error is half the width of a symmetric interval: if p = 60% and the margin is ±5%, the CI is 55%–65%. The Wilson interval used here can be asymmetric near 0% or 100%, so the calculator shows the distance to each bound separately.

Why is 95% the standard confidence level?

It is a convention that balances precision and interval width: if you repeated the study many times, about 95% of the intervals would contain the true value. Use 99% for critical decisions.

How to narrow the confidence interval?

Increase the sample size: quadrupling n roughly halves the interval. Lowering the confidence level (for example from 99% to 95%) also narrows it, at the cost of missing the true value more often.

Can CI be used for comparison?

Yes, with care. If the intervals of two groups do not overlap, the difference is statistically significant. If they overlap, the difference may still be significant, so run a formal test. Non-overlap is sufficient but not necessary for significance.

What does "95% confidence" mean?

It does not mean the true value has a 95% chance of being in this particular interval. The true value is fixed. It means the method produces intervals that contain the true value in about 95% of repeated samples.

What formula is used for the confidence interval?

The Wilson score interval: centre = (p + z²/2n) / (1 + z²/n), half-width = z / (1 + z²/n) × √(p(1−p)/n + z²/4n²). Z comes from the confidence level (90% → 1.645; 95% → 1.96; 99% → 2.576). The bounds always stay between 0% and 100%.

When to use CI in a report?

Always report the confidence interval next to the percentage: "60% (95% CI: 55.1%–64.7%)". It shows precision and helps when comparing groups.

Learn the method

Read how the method works and where its numbers come from.

The SurveyNinja ninja takes off on a rocket

Turn the numbers into a survey

Start from the “Market research survey” template: the questions are ready.