Sample Size Calculator
Sample Size is evaluated from Confidence Level, Margin of Error and Expected Proportion. The calculation reports Required Sample Size and Adjusted n.
Results
About the Sample Size Calculator
The calculator uses a multi formula configuration. Each reported value is read as a direct evaluation of the stored rules with the declared field formats and units.
Formula basis:
n = (Z^2 x p x (1-p)) / E^2
Use p=0.5 when proportion is unknown (worst case).
Interpret the outputs in the order shown by the result fields. Optional inputs affect only the outputs that depend on those variables.
Formula & How It Works
The calculation applies the following relations exactly as recorded in the metadata: n = (Z^2 x p x (1-p)) / E^2 Use p=0.5 when proportion is unknown (worst case). Each output field is produced by substituting the supplied inputs into the relevant relation and then applying the declared rounding or text format.
Worked Examples
Example 1: Political poll: 95% confidence, ±3% margin of error, unknown proportion
Inputs
With Confidence Level = 95, Margin of Error = 3 and Expected Proportion = 50 as the stated inputs, the result is Required Sample Size = 1,068 and Adjusted n = 10. Each value corresponds to the declared output fields.
Example 2: Medical study: 99% confidence, ±5% margin, expected 30% prevalence
Inputs
With Confidence Level = 99, Margin of Error = 5 and Expected Proportion = 30 as the stated inputs, the result is Required Sample Size = 558 and Adjusted n = 10. Each value corresponds to the declared output fields.
Example 3: Customer satisfaction: 95% confidence, ±5% margin, large company
Inputs
With Confidence Level = 95, Margin of Error = 5 and Expected Proportion = 50 as the stated inputs, the result is Required Sample Size = 385 and Adjusted n = 10. Each value corresponds to the declared output fields.
Example 4: Small town survey: 95% confidence, ±5% margin, town population = 2,500
Inputs
With Confidence Level = 95, Margin of Error = 5, Expected Proportion = 50 and Population Size = 2,500 as the stated inputs, the result is Required Sample Size = 385 and Adjusted n = 334. Each value corresponds to the declared output fields.
Common Use Cases
- Calculate minimum sample size for a survey
- Determine sample size for clinical trials
- Plan sample size for market research