
How to Calculate Sample Size Formula with Solved Examples
The concept of sample size plays a key role in mathematics and is widely applicable to both real-life situations and exam scenarios. Whether you’re collecting data for a project, preparing for exams, or working on scientific research, understanding how to choose the right sample size is crucial for accuracy and confidence in your results.
What Is Sample Size?
A sample size is defined as the number of individual data points or observations chosen from a larger population to be included in a statistical analysis or research study. You’ll find this concept applied in areas such as statistics, surveys, experiments, and probability studies. In Maths, the sample size is often represented by the symbol ‘n’ and helps decide how reliable your results will be.
Key Formula for Sample Size
Here’s the standard formula to calculate sample size for a proportion:
\( n = \frac{Z^2 \times p \times q}{E^2} \)
where:
Z = z-score based on desired confidence level
p = estimated proportion of success
q = 1 – p
E = margin of error
For estimating the mean (when population standard deviation σ is known):
\( n = \left( \frac{Z \times \sigma}{E} \right)^2 \)
Cross-Disciplinary Usage
Sample size is not only useful in Maths but also plays an important role in Physics (for experiments), Computer Science (for data analysis), and everyday decision-making (e.g., polling, market research). Students preparing for JEE, NEET, or any board exams will see questions about sample size in probability, hypothesis testing, and survey-based problems.
Step-by-Step Illustration
- Suppose you want to estimate the proportion of students who prefer online learning. You want 95% confidence (Z = 1.96), expect around 50% to prefer online (p = 0.5), and want a margin of error ±5% (E = 0.05).
Plug values into the formula:
\( n = \frac{1.96^2 \times 0.5 \times 0.5}{0.05^2} \) - Calculate numerator: \(1.96^2 = 3.8416; 3.8416 \times 0.25 = 0.9604\)
- Calculate denominator: \(0.05^2 = 0.0025\)
- Divide: \(n = \frac{0.9604}{0.0025} = 384.16\)
- Round up: The minimum sample size required is 385 students.
Speed Trick or Vedic Shortcut
Here’s a quick shortcut for MCQ exams—when you have no prior estimate for p, use 0.5 (or 50%) in the formula. This gives the largest sample size, which is always safe. This approach helps when exact proportions are unknown and you want to be sure your sample is big enough for reliable results.
Example Trick: For a 95% confidence level and 5% margin of error, just remember “385” as the commonly used sample size.
Tricks like this are practical in competitive and board exams. Vedantu sessions include more such exam tips to help you prepare smartly.
Try These Yourself
- Calculate the sample size needed to estimate a class’s average height within 2 cm, given σ = 8 cm and 95% confidence.
- Why does using just 10 survey responses risk large error?
- If a study has a population of 1000, which adjustment do you make to the formula?
- Find the margin of error if n = 400, Z = 1.96, p = 0.6, q = 0.4.
Frequent Errors and Misunderstandings
- Assuming a small sample size always gives more accurate results (in fact, too small means high error).
- Confusing sample size (n) with population size (N).
- Ignoring margin of error or confidence level when calculating n.
- Not using the correct formula based on whether you are estimating a proportion or a mean.
Relation to Other Concepts
The idea of sample size connects closely with confidence interval (the range where values are likely to fall), margin of error, central limit theorem, and hypothesis testing. Knowing how these all work together boosts your confidence in analyzing data accurately.
Classroom Tip
A handy way to remember sample size decisions: “More variation, more students!”—if your group is very diverse, you need a bigger sample. Vedantu’s teachers use such thumb rules and real-life analogies during their online classes to make the stats concepts stick.
We explored sample size—from definition, formulas, calculation steps, quick tips, mistakes to avoid, and links to related Maths ideas. Practice these sample size problems with Vedantu and see your stats confidence grow!
Explore more about:
FAQs on Sample Size in Statistics Explained Clearly
1. What is sample size in statistics?
The sample size is the number of observations or individuals included in a statistical sample. It is usually denoted by n and represents how many data points are used to estimate population parameters.
- A larger sample size generally gives more reliable results.
- A smaller sample size may lead to higher variability and less accuracy.
- Sample size is a key concept in sampling, hypothesis testing, and confidence intervals.
2. Why is sample size important in statistics?
Sample size is important because it directly affects the accuracy and reliability of statistical results.
- Larger samples reduce sampling error.
- They produce narrower confidence intervals.
- They increase the power of a hypothesis test.
3. What is the formula for calculating sample size?
For estimating a population mean, the common sample size formula is n = (Z²σ²) / E².
- Z = z-score for the chosen confidence level
- σ = population standard deviation
- E = margin of error
4. How do you calculate sample size with a given confidence level and margin of error?
You calculate sample size by substituting the confidence level z-value and margin of error into the formula n = (Z²σ²) / E².
- Example: For 95% confidence, Z = 1.96.
- Let σ = 10 and E = 2.
- n = (1.96² × 10²) / 2² = (3.8416 × 100) / 4 = 384.16 / 4 = 96.04.
5. What happens if the sample size is too small?
If the sample size is too small, the results may be unreliable and have a large sampling error.
- Confidence intervals become wider.
- The test may fail to detect real effects (low statistical power).
- Estimates may not represent the population accurately.
6. How does increasing sample size affect standard error?
Increasing the sample size decreases the standard error because standard error is inversely proportional to the square root of n. The formula is SE = σ / √n.
- As n increases, √n increases.
- This makes the standard error smaller.
- Smaller standard error means more precise estimates.
7. What is the difference between sample size and population size?
The population size (N) is the total number of individuals in a group, while the sample size (n) is the number selected for study.
- Population includes all members.
- Sample is a subset of the population.
- Statistical analysis is usually performed on the sample to estimate population parameters.
8. What is a good sample size for a survey?
A good sample size for a survey depends on the desired confidence level and margin of error, but for large populations, about 385 respondents are needed for 95% confidence and 5% margin of error. This comes from the proportion formula with Z = 1.96 and p = 0.5.
- Higher accuracy requires a larger sample.
- Smaller margin of error increases required sample size.
9. How do you determine sample size for hypothesis testing?
Sample size for hypothesis testing is determined using the desired significance level (α), power (1 − β), effect size, and variability.
- Choose α (commonly 0.05).
- Choose power (commonly 0.8 or 0.9).
- Estimate effect size and standard deviation.
10. Can you give an example of calculating sample size for a proportion?
Yes, sample size for a proportion can be calculated using n = (Z²p(1 − p)) / E².
- Example: 95% confidence → Z = 1.96
- Estimated proportion p = 0.5
- Margin of error E = 0.05
- n = (1.96² × 0.5 × 0.5) / 0.05² = (3.8416 × 0.25) / 0.0025 = 0.9604 / 0.0025 = 384.16





















