Proportion Hypothesis Testing
Shaded areas represent Confidence Level (blue) and Alpha tails (red).
Choose your confidence level. A 95% level (Z=1.96) is the industry standard for most research.
Enter the maximum difference you'll allow between the sample and population. Use decimals (e.g., 0.05 for 5%).
If you have a pilot study or prior data (e.g., 30%), enter 0.30. If you have no idea, leave it blank.
Pro Tip: When you leave the proportion blank, the calculator uses 0.50. This is the "safe" approach because it requires the largest possible sample size to ensure your results are statistically significant.
Imagine you are conducting a market research survey to estimate the percentage of people in a city who support a new green policy. Since you don't have prior data, we use the conservative estimate of \(p = 0.5\). To achieve a 95% Confidence Level (\(Z = 1.96\)) and a 5% Margin of Error (\(E = 0.05\)):
Result: You would need a sample size of 385 people.
Suppose a pilot study shows that roughly 30% (\(p = 0.3\)) of users prefer a dark mode interface. You want to verify this with a 99% Confidence Level (\(Z = 2.576\)) and a tighter 3% Margin of Error (\(E = 0.03\)):
Result: The required sample size increases to 1,549 due to the higher confidence and lower error requirements.