yCalculator

Sample Size Calculator

Last updated: April 2026

Sample size calculator

Estimate how many responses you need for statistically useful survey or research results.

Confidence level

Required sample size

385

Supporting info

Confidence level
95%
Margin of error
+/-5%
Z-score used
1.96
Population size
Not applicable
Adjusted sample
Not applicable
Sampling fraction
Not applicable

Sensitivity table

Margin90% CI95% CI99% CI
1%6,7669,60416,590
2%1,6922,4014,148
3%7521,0681,844
5%271385664
10%6897166
Step-by-step working
  1. Z = 1.96 for 95% confidence.
  2. n = (Z^2 x p x (1-p)) / e^2.
  3. n = (1.96^2 x 0.5 x 0.5) / 0.05^2.
  4. n = (3.8416 x 0.25) / 0.0025.
  5. n = 384.16. Round up: n = 385.
  6. No finite population size entered, so the infinite population sample size is used.

What is statistical significance?

Statistical significance means your result is unlikely to be due to random chance alone.

Confidence level vs confidence interval

The confidence level is how often the method should capture the true value. The interval is the estimated range.

Why use 95% confidence?

95% confidence is a common balance between reliability and a practical sample size.

How population size affects sample size

For small finite populations, the required sample can be adjusted downward because each response covers a larger share of the group.

About this calculator

The Sample Size Calculator estimates how many observations are needed for a survey or proportion estimate at a chosen confidence level and margin of error. It is useful for research planning, customer surveys, polling examples, quality checks, and statistics coursework. Use this expanded guide when the Sample Size Calculator result needs to be explained, checked, or reused in another calculation. It is especially useful for students, researchers, and teams planning surveys or proportion estimates. The best habit is to treat the calculator as a method checker: write down the formula, enter the values, then compare the result with a rough mental estimate or a simpler example.

Sample Size Calculator formula and method

The calculator uses the standard sample-size formula for estimating a proportion. It combines confidence level, z-score, estimated proportion, and margin of error. Where population size is finite, it can apply a finite population correction. The calculator follows the mathematical rule selected by the inputs. To make the result reliable, keep the definitions clear and check whether the problem is asking for how many responses are needed, how confidence level changes sample size, how margin of error affects effort. If two methods seem possible, run a small example first and confirm which convention the question expects.

  • initial sample size = z^2 x p(1 - p) / e^2
  • finite correction = n / (1 + (n - 1) / population)
  • maximum variability often uses p = 0.5
  • reliable answer = correct formula + compatible units + sensible rounding
  • manual check = substitute values into the formula before rounding

How to use the Sample Size Calculator

  1. Choose the calculation mode or shape that matches the problem, then gather confidence level, margin of error, estimated proportion.
  2. Check units, notation, and whether the question expects an exact value, decimal approximation, percentage, or rounded answer.
  3. Enter known values only once and keep a note of any assumed value so the calculation can be repeated.
  4. Review the main outputs: required sample size, finite population adjusted size, z-score used.
  5. Run a simple test case you can verify mentally to make sure the input order and units are correct.
  6. Adjust precision or rounding only at the end unless the problem specifically asks for rounded intermediate values.
  7. Compare the result with statistics course notes or research methodology guidance when the answer is for coursework, engineering, statistics, coding, or a formal report.
  8. Read the problem once for the goal and once for the inputs: confidence level, margin of error, estimated proportion, population size.
  9. Draw a quick diagram, table, number line, or expression tree if the relationship is easier to see visually.
  10. Check restrictions before calculating, such as non-zero denominators, compatible dimensions, valid probabilities, or allowed number bases.
  11. Enter the values in the same order used by the formula.
  12. Review the outputs: required sample size, finite population adjusted size, z-score used, margin of error.
  13. Compare the answer with a rough estimate so obvious input errors are caught early.
  14. Round the final answer to the precision requested by the problem or report.

Worked example

Survey sample estimate

Input: 95% confidence, margin of error 5%, estimated proportion 50%.

Calculation: Using z = 1.96 and p = 0.5 gives n about 384.16.

Result: About 385 responses are needed before finite population adjustment.

Tighter margin scenario

Input: Margin of error reduces from 5% to 3%.

Calculation: Because e is squared in the denominator, sample size rises sharply.

Result: More precision requires many more responses.

Finite population scenario

Input: Population is 1,000 and initial sample size is 385.

Calculation: Finite population correction reduces the required completed sample.

Result: Small populations can need fewer responses than the unlimited-population formula.

What this calculator is solving

The Sample Size Calculator is for students, researchers, and teams planning surveys or proportion estimates. It turns the known values into a structured calculation so you can focus on the method, units, and interpretation rather than doing every arithmetic step by hand.

For best results, write the formula first, substitute the numbers second, and then round the final answer. That habit makes it easier to spot mistakes and explain the result later.

InputWhat it representsCheck before calculating
confidence levelA known value, selected method, or setting used by the calculator.Confirm the unit, sign, order, and whether the value is measured, estimated, or exact.
margin of errorA known value, selected method, or setting used by the calculator.Confirm the unit, sign, order, and whether the value is measured, estimated, or exact.
estimated proportionA known value, selected method, or setting used by the calculator.Confirm the unit, sign, order, and whether the value is measured, estimated, or exact.
population sizeA known value, selected method, or setting used by the calculator.Confirm the unit, sign, order, and whether the value is measured, estimated, or exact.
response rate assumptionA known value, selected method, or setting used by the calculator.Confirm the unit, sign, order, and whether the value is measured, estimated, or exact.

How to read the result

Math results can look precise even when the inputs are rounded or estimated. A calculator can produce many decimal places, but the useful answer is the one that matches the accuracy of the original problem.

required sample size
Read this output with its unit, sign, and rounding rule. If the output feeds into another calculation, keep extra precision until the final answer.
finite population adjusted size
Read this output with its unit, sign, and rounding rule. If the output feeds into another calculation, keep extra precision until the final answer.
z-score used
Read this output with its unit, sign, and rounding rule. If the output feeds into another calculation, keep extra precision until the final answer.
margin of error
Read this output with its unit, sign, and rounding rule. If the output feeds into another calculation, keep extra precision until the final answer.
rounded respondent count
Read this output with its unit, sign, and rounding rule. If the output feeds into another calculation, keep extra precision until the final answer.

Practical uses

The same formula can support classroom work, spreadsheet checks, programming tasks, construction estimates, lab reports, data analysis, and quick sanity checks. The important part is matching the calculator method to the situation.

how many responses are needed
Use the calculator to compare the result with an expected range. If the answer is far outside that range, revisit the inputs before trusting the number.
how confidence level changes sample size
Use the calculator to compare the result with an expected range. If the answer is far outside that range, revisit the inputs before trusting the number.
how margin of error affects effort
Use the calculator to compare the result with an expected range. If the answer is far outside that range, revisit the inputs before trusting the number.

Precision, units, and notation

Most wrong answers come from small setup errors: mixing units, reversing an input order, using degrees when radians are expected, rounding too early, or treating a percentage as a whole number. Make the notation explicit before entering values.

CheckWhy it matters
UnitsLengths, areas, volumes, rates, and angles must use compatible units.
OrderCoordinate pairs, matrix rows, base/exponent values, and numerator/denominator positions are order-sensitive.
RoundingIntermediate rounding can change final results, especially in statistics and scientific notation.
DomainSome operations are undefined or restricted, such as division by zero or square roots of negative numbers in real-number mode.

Common mistakes and edge cases

Use the edge cases below as a checklist before relying on the result. They are especially important when a result will be copied into homework, a spreadsheet, code, a design note, or a report.

A biased sample is not fixed by a large sample size.
If this applies, rerun the calculation with corrected inputs or use a more specific calculator for the next step.
Smaller margin of error requires a much larger sample.
If this applies, rerun the calculation with corrected inputs or use a more specific calculator for the next step.
Use p = 0.5 when the true proportion is unknown.
If this applies, rerun the calculation with corrected inputs or use a more specific calculator for the next step.
Response rate affects invitations needed, not just completed responses.
If this applies, rerun the calculation with corrected inputs or use a more specific calculator for the next step.

Manual check strategy

A calculator is fastest when the setup is already clear. For the Sample Size Calculator, start by naming each variable and writing the formula before entering numbers. This prevents common mistakes such as swapping coordinates, using a diameter as a radius, adding probabilities that should be multiplied, or using a formula for the wrong shape.

After calculating, use estimation. If an area is smaller than one of its dimensions, a probability is above 100%, a distance is negative, or a sample size is a decimal response count, the answer needs another look.

research question
Use this to keep the calculation traceable. In math work, the record is often the original expression, diagram, dataset, or formula convention rather than a formal document.
population definition
Use this to keep the calculation traceable. In math work, the record is often the original expression, diagram, dataset, or formula convention rather than a formal document.
confidence level choice
Use this to keep the calculation traceable. In math work, the record is often the original expression, diagram, dataset, or formula convention rather than a formal document.
expected response rate
Use this to keep the calculation traceable. In math work, the record is often the original expression, diagram, dataset, or formula convention rather than a formal document.
sampling method notes
Use this to keep the calculation traceable. In math work, the record is often the original expression, diagram, dataset, or formula convention rather than a formal document.

Inputs that deserve extra care

Many math mistakes are not arithmetic mistakes. They happen before calculation starts: a unit is mixed, a coordinate is reversed, a base is misunderstood, or a rounded value is reused too early.

InputWhy it mattersQuick check
confidence levelIt controls the formula, operation, or interpretation of the answer.Check unit, sign, order, domain, and whether the value is exact or rounded.
margin of errorIt controls the formula, operation, or interpretation of the answer.Check unit, sign, order, domain, and whether the value is exact or rounded.
estimated proportionIt controls the formula, operation, or interpretation of the answer.Check unit, sign, order, domain, and whether the value is exact or rounded.
population sizeIt controls the formula, operation, or interpretation of the answer.Check unit, sign, order, domain, and whether the value is exact or rounded.
response rate assumptionIt controls the formula, operation, or interpretation of the answer.Check unit, sign, order, domain, and whether the value is exact or rounded.

Interpreting the answer

The answer should match the kind of quantity being calculated. A length should have length units, an area should have square units, a probability should sit between 0 and 1, and a count should usually be a whole number.

required sample size
Check whether this output is an exact value, an approximation, a rounded display value, or an intermediate result for a later step.
finite population adjusted size
Check whether this output is an exact value, an approximation, a rounded display value, or an intermediate result for a later step.
z-score used
Check whether this output is an exact value, an approximation, a rounded display value, or an intermediate result for a later step.
margin of error
Check whether this output is an exact value, an approximation, a rounded display value, or an intermediate result for a later step.
rounded respondent count
Check whether this output is an exact value, an approximation, a rounded display value, or an intermediate result for a later step.

When to use a related calculator

Many math tasks are chained. A circle area may feed into a volume calculation, a z-score may feed into a probability check, and a factorisation may feed into an LCM or ratio problem. If the next step uses a different rule, switch calculators rather than forcing one page to do everything.

Quality checklist

Before copying the result, check the edge cases below. They catch the errors that most often make a correct-looking answer wrong.

A biased sample is not fixed by a large sample size.
If this warning applies, correct the setup and calculate again before using the result.
Smaller margin of error requires a much larger sample.
If this warning applies, correct the setup and calculate again before using the result.
Use p = 0.5 when the true proportion is unknown.
If this warning applies, correct the setup and calculate again before using the result.
Response rate affects invitations needed, not just completed responses.
If this warning applies, correct the setup and calculate again before using the result.

Important edge cases

  • A biased sample is not fixed by a large sample size.
  • Smaller margin of error requires a much larger sample.
  • Use p = 0.5 when the true proportion is unknown.
  • Response rate affects invitations needed, not just completed responses.

Limitations

This guide is for general educational information only. The calculator gives a mathematical estimate or exact arithmetic result from the inputs. It cannot decide whether a modelling assumption, measurement, sample, or real-world interpretation is appropriate. This guide is for general educational information only. The calculator follows standard mathematical rules, but it cannot know whether the model is appropriate for the real-world situation. Measurements, samples, assumptions, and data quality still need human judgement.

  • Use exact values where the problem gives them and delay rounding until the final answer.
  • Check units, domains, and definitions before using the answer in a technical or academic setting.
  • Compare the result with statistics course notes or research methodology guidance where the calculation is part of formal coursework, engineering, statistics, coding, or research work.
  • Check statistics course notes or research methodology guidance if the calculation must follow a specific course, exam board, software, engineering, or research convention.
  • Use exact values until the final step where possible.
  • For high-stakes technical work, verify results independently and document the formula used.

Frequently asked questions

Can I use the Sample Size Calculator for homework?

Yes, but use it to check your method rather than simply copy the final answer. Write down the formula, substitution, and rounding rule.

Why does my answer differ from a textbook or spreadsheet?

Common reasons are rounding, unit conversion, input order, degree versus radian mode, or a different formula convention.

Should I round intermediate steps?

Usually no. Keep extra precision during the calculation and round the final answer to the required number of decimal places or significant figures.

What is margin of error?

It is the expected range around a sample estimate due to sampling variation.

What confidence level should I use?

95% is common in coursework and surveys, but the choice depends on the purpose.

Why use p = 0.5?

It gives the largest sample size when the true proportion is unknown.

Does sample size remove bias?

No. Sampling method and representativeness still matter.

Should I invite more people than the sample size?

Usually yes, because not everyone invited will respond.

Related calculators

  • Confidence Interval Calculator
  • Z-Score Calculator
  • Percentage Calculator
  • Standard Deviation Calculator

What does this mean?

This calculator is designed to help you understand the likely number before you make a decision or start an application.

Your result should be checked against official UK guidance, especially if your circumstances include dependants, exemptions, prior leave, or a complex immigration history.

Treat the figure as a planning tool rather than legal advice. Where the answer affects an application deadline or major payment, speak to an authorised adviser.

Related Math calculators

math calculators

Triangle Calculator

Solve any triangle using SSS, SAS, ASA, AAS, SSA, right triangle, and Pythagorean theorem modes

Calculate ->

math calculators

Area Calculator

Calculate the area of common 2D shapes with formula substitutions and unit conversions

Calculate ->

math calculators

Volume Calculator

Calculate volume for common 3D shapes with formulas, cubic units and litre conversions

Calculate ->