Sample Size Calculator — Free Study Planning Tool
Calculate the sample size for your study design: proportions, means, comparisons and more, with method notes and manuscript wording.
Work out how many participants your study needs. Choose your study type and enter a few details about your study. ResRef selects the right calculation (Cochran's formula, G*Power-equivalent power analysis, Schoenfeld, Buderer or Riley, depending on the design), adjusts for your population size, response rate and dropout, and writes the sample size paragraph for your protocol in English or Arabic.
How to use the Sample Size Calculator
- Choose your study type, for example a survey, a cross-sectional or prevalence study, a comparison between groups or a diagnostic accuracy study.
- Enter a few details about your study, such as the expected percentage, the margin of error and the expected response or dropout rate.
- Read the number of participants to recruit and copy the ready-written sample size paragraph for your protocol or manuscript.
What it covers
- Surveys and questionnaires, prevalence studies and cross-sectional studies
- Comparing percentages or averages between groups, and before–after studies
- Time-to-event outcomes and non-inferiority comparisons
- Diagnostic accuracy studies: sensitivity and specificity, or ROC curve (AUC)
- Correlation and regression-based studies
- Advanced options: power, significance level, allocation ratio, design effect and exact effect sizes
Frequently asked questions
How do I calculate the sample size for a cross-sectional study?
Choose Cross-sectional study, then enter the expected prevalence, the margin of error you can accept and your confidence level. The calculator applies Cochran's formula, adjusts for your population size and expected response rate, and shows how many people to recruit.
What should I enter if I don't know the expected percentage?
Use 50%. It gives the largest sample size for a given margin of error, so your study stays large enough whatever the true percentage turns out to be. A value from a previous study or national data gives a more precise result.
Can I calculate the power for a sample size I already have?
Yes. Open Advanced options to calculate the power, or the smallest effect you can detect, for a fixed number of participants.
Can I use the result in my thesis or protocol?
Yes. Each result comes with a sample size paragraph in English or Arabic that names the method and the values you used, ready to adapt for your protocol, ethics application or manuscript.