Principles and methods of sample size determination for the comparison of two independent means were introduced in the previous article.
1 In this article we will discuss sample size determination for the comparison of two independent proportions. While the same principles about power, α error, and β error can be applied as well, the selection of an adequate test is needed for the comparison of two independent proportions, depending on the condition whether the sample size is large enough or not.
Selection of two-sample test for proportions
The comparison of two independent proportions occurs when we perform an experiment with a binary outcome (e.g., success or failure) obtained from two groups (e.g., control vs. experiment groups). Let's call the sample sizes and proportions of success in the control and experimental groups as n1, n2, p1, and p2, respectively. When the sample size of an experiment is large enough (e.g., n1p1 > 5, and n2p2 > 5), we can assume the sampling distribution of proportions as approximately normal based on the central limit theorem. Therefore, when sample size is large enough, we can apply z test approximation in comparing two independent proportions and the same principle can be applied in the required sample size calculation.
The comparison of two proportions can be expressed as a 2 × 2 contingency table. When we test the association of two binary variables (two groups and two outcomes), we usually apply the Pearson chi-square test. When the sample size is large enough, the result of chi-square test and z test approximation are equally reliable and show the same result with an identical p value. If the condition satisfies for the application of the Pearson chi-square test, use of z test approximation in sample size calculation is justified.
However, if there is one or more cells with expected frequencies smaller than 5, statistical packages display the warning message that the Pearson chi-square test results cannot be reliable. In those cases, we need to apply the Fisher's exact test instead of the Pearson chi-square test. The Fisher's exact test is applicable when the sample size is small and we could expect that there may be one or more small cells (< 5). Therefore, different sample size calculation procedure following the Fisher's exact test will be applied when the sample size is small.
Calculation of sample size
1. Z test approximation for large sample test
When we suppose the sample size is large enough, following sample size calculation procedure can be performed based on z test approximation. Let's assume the following conditions: proportion of control group (
p1) = 0.2, proportion of experimental group (
p2) = 0.3. If we set α error level (two-sided) = 0.05 (corresponding z
α/2 = 1.96), power level = 0.8 (corresponding z
β = 0.84), and allocation ratio (
n1 /
n2= κ) = 1, the sample size is calculated as approximately 291 subjects per group using the following formula.
2
The calculation procedure can be accomplished using the software G*Power. G*Power displays a similar result of sample size, 294 (Example 1).
2. Fisher's exact test for small samples test
When we expect the sample size is small and there may be one or more small cells (< 5), following sample size calculation procedure can be performed based on the Fisher's exact test. Let's assume the following conditions: proportion of control group (
p1) = 0.05, and proportion of experimental group (
p2) = 0.3. We set α error level (two-sided) = 0.05 (corresponding z
α/2 = 1.96), power level = 0.8 (corresponding zβ = 0.84), and allocation ratio (
n1/
n2 = κ) = 1. Because there is no definite formula related to the case, we need to use a software for sample size determination.
Table 1 shows exemplary results applying various levels of proportions, α error, and power.
Table 1Results of sample size determination for Fisher's exact test (two-sided)
|
α = 0.05 |
α = 0.01 |
p1
|
p2
|
Power = 0.8 |
Power = 0.9 |
Power = 0.8 |
Power = 0.9 |
0.05 |
0.30 |
39 |
51 |
56 |
68 |
0.40 |
24 |
31 |
35 |
42 |
0.50 |
17 |
21 |
23 |
28 |
0.10 |
0.30 |
69 |
89 |
98 |
123 |
0.40 |
36 |
47 |
51 |
64 |
0.50 |
23 |
29 |
33 |
40 |
Download Table 
Sample size determination procedure using G*Power
An appropriate sample size for the comparison of proportions can be obtained by performing the following steps using G*Power, a free software.
1. Z test approximation for two independent proportions (Large sample test)
Step 1: Select statistical test types
Menu: Tests - Proportions - Two Independent Groups: Inequality, z-Test
Step 2: Select one-sided or two-sided test
Step 3: Select α error level
Step 4: Select power level
Step 5: Select allocation ratio
Step 6: Calculation of sample size
Menu: Calculate
Example 1) Two tailed test
Proportions: p1 = 0.2, p2 = 0.3
α error level = 0.05
Power = 0.8
Allocation ratio: n1/n2 = 1
Appropriate sample size calculated: n1 = n2 = 294
2. Fisher exact test for two independent proportions (Small sample test)
Step 1: Select statistical test types
Menu: Tests - Proportions - Two Independent Groups: Inequality, Fisher's exact test
Step 2 - Step 5 (the same as example 1)
Step 6: Calculation of sample size
Menu: Calculate
Example 2) Two tailed test
Proportions: p1 = 0.05, p2 = 0.30
α error level = 0.05
Power = 0.8
Allocation ratio n1/n2 = 1
Appropriate sample size calculated: n1 = n2 = 39
REFERENCES
- 1. Kim HY. Statistical notes for clinical researchers: sample size calculation 1. comparison of two independent sample means. Restor Dent Endod 2016;41:74-78.ArticlePubMedPDF
- 2. Chow SC, Shao J, Wang H. Sample size calculations in clinical research. New York: Marcel Dekker; 2003. p. 81-122.
Tables & Figures
Table 1Results of sample size determination for Fisher's exact test (two-sided)
|
α = 0.05 |
α = 0.01 |
p1
|
p2
|
Power = 0.8 |
Power = 0.9 |
Power = 0.8 |
Power = 0.9 |
0.05 |
0.30 |
39 |
51 |
56 |
68 |
0.40 |
24 |
31 |
35 |
42 |
0.50 |
17 |
21 |
23 |
28 |
0.10 |
0.30 |
69 |
89 |
98 |
123 |
0.40 |
36 |
47 |
51 |
64 |
0.50 |
23 |
29 |
33 |
40 |
Download Table 
Citations
Citations to this article as recorded by

- Hepatitis B infection (HBsAg and HBeAg) status among women attending antenatal care at public healthcare facilities of South Africa, 2017
Shelina Moonsamy, Pavitra Pillay, Beverley A. Singh, Adrian Puren, John W. Ward, Nishi Prabdial-Sing, Edina Amponsah-Dacosta
PLOS Global Public Health.2025; 5(1): e0003567. CrossRef - Late discovery of bodies in indoor settings: A forensic practitioner’s view on recognizing cases of social isolation in eastern Attica, Greece
Christina Karydi, Christiana Leventaki, Konstantinos Katsos, Emmanouil I. Sakelliadis, Chara Spiliopoulou, Konstantinos Moraitis
Forensic Science International.2025; 368: 112395. CrossRef - Media Influence on the Perceived Safety of Dietary Supplements for Children: A Content Analysis of Spanish News Outlets
Rosa Melero-Bolaños, Belén Gutiérrez-Villar, Maria Jose Montero-Simo, Rafael A. Araque-Padilla, Cristian M. Olarte-Sánchez
Nutrients.2025; 17(6): 951. CrossRef - The effect of enteral nutrition strategy and non-invasive ventilation on diarrhea and nutritional goals in the critically ill: A protocol for a multicentre retrospective cohort study (ENND GOALS)
Justin Bruni Senecal, Taiya Lakhanpal, Lawrence Mbuagbaw, Tatianna Giannidis, Parsa T. Khazaneh, Bram Rochwerg, Simon J.W. Oczkowski, Deborah J. Cook, Jennifer L.Y. Tsang, M. Ines Pinto-Sanchez, Sameer Sharif, David Armstrong, Natalia Ovtcharenko, Nicole
PLOS ONE.2025; 20(4): e0322122. CrossRef - Advantages of immediate implant-based breast reconstruction over delayed breast reconstruction in women treated with postmastectomy radiotherapy for breast cancer
Merel M. L. Kooijman, J. Joris Hage, Astrid N. Scholten, Frederieke H. van Duijnhoven, Corstiaan C. Breugem, Leonie A. E. Woerdeman
Breast Cancer Research and Treatment.2025; 212(1): 37. CrossRef - Mobile Application-Based Support for Periodontal Treatment Improves Clinical, Cognitive, and Psychomotor Outcomes: A Randomized Controlled Trial Study
Valdy Hartono, Yoga Setiadharma, Aurelle Khadeeja Rizany, Benso Sulijaya, Robert Lessang, Natalina Haerani, Ette S. Tadjoedin, Sri Lelyati C. Masulili, Fatimah Maria Tadjoedin, Yuniarti Soeroso, Marie Rossini Carmela T. Lachica
Dentistry Journal.2024; 12(3): 63. CrossRef - Prevalence and Effect of Cannabinoids in Pain Management for Hand Pathologies
Marc G. Sleiman, Andrew Straszewski, Jeffrey G. Stepan, Megan Conti Mica
HAND.2024;[Epub] CrossRef - "In the spectrum of people who are healthy": Views of individuals at risk of dementia on using neurotechnology for cognitive enhancement
Asad Beck, Andreas Schönau, Kate MacDuffie, Ishan Dasgupta, Garrett Flynn, Dong Song, Sara Goering, Eran Klein
Neuroethics.2024;[Epub] CrossRef - Employers’ Perceptions of Challenges and Strategies in Hiring, Retaining, and Promoting Employees With Physical Disabilities
Elizabeth G. S. Munsell, Angelika Kudla, Han Su, Jasin Wong, Deborah Crown, Pamela Capraro, Robert Trierweiler, Mirang Park, Allen W. Heinemann
Rehabilitation Counseling Bulletin.2024; 67(3): 177. CrossRef - Predictive value of serum interleukin-6 for neonatal encephalopathy outcomes
Junichi Saito, Jun Shibasaki, Kouji Yamamoto, Maya Fujita, Katsuaki Toyoshima
Journal of Neonatal-Perinatal Medicine.2024; 17(6): 770. CrossRef - Knowledge of Non-Communicable Diseases Among Adolescents in Public and Private Secondary Schools in Port Harcourt, Rivers State, Nigeria
Fredrick Enuagwuna, Charles Tobin-West, Efemierhere Asiboje, Shekinah Wilcox
World Journal of Public Health.2024; 9(4): 354. CrossRef - Novel Mutations Reduce Expression of Meiotic Regulators SYCE1 and BOLL in Testis of Azoospermic Men from West Bengal, India
Samudra Pal, Pranab Paladhi, Saurav Dutta, Rupam Basu Mullick, Gunja Bose, Papiya Ghosh, Ratna Chattopadhyay, Sujay Ghosh
Reproductive Sciences.2024; 31(4): 1069. CrossRef - Risk and Determinants of Non-communicable Diseases Among Adolescents in Public and Private Secondary Schools in Port Harcourt, Rivers State, Nigeria
Fredrick Enuagwuna, Efemierhere Asiboje, Ifeoma Ofurum, Shekinah Wilcox
World Journal of Public Health.2024; 9(4): 366. CrossRef - The Italian food environment may confer protection from hyper-palatable foods: evidence and comparison with the United States
Tera L. Fazzino, Carmine Summo, Antonella Pasqualone
Frontiers in Nutrition.2024;[Epub] CrossRef - Co-Existing Vascular Surgery Integrated Residencies are Associated with Increased General Surgery Resident Proficiency and Autonomy in Vascular Cases
Gabrielle K. Steinl, Ting Sun, W. Darrin Clouse, Brigitte K. Smith, M. Libby Weaver
Annals of Vascular Surgery.2024; 109: 256. CrossRef - Predictive value of serum interleukin-6 for neonatal encephalopathy outcomes
Junichi Saito, Jun Shibasaki, Kouji Yamamoto, Maya Fujita, Katsuaki Toyoshima
Journal of Neonatal-Perinatal Medicine.2024;[Epub] CrossRef - Associations Between Technology Use, Responsive Feeding, and Child Temperament Among Prior Prenatal Intervention Participants
Alison K. Ventura, Chantelle N. Hart, Suzanne Phelan, Elissa Jelalian, Rena R. Wing
Journal of Developmental & Behavioral Pediatrics.2023;[Epub] CrossRef - Sources of informal financial support among adolescent and young adult cancer survivors: a mixed methods analysis from the HIAYA CHAT study
Austin R. Waters, Karely M. van Thiel Berghuijs, Heydon K. Kaddas, Perla L. Vaca Lopez, Amy Chevrier, Nicole Ray, Tomoko Tsukamoto, Karlie Allen, Douglas B. Fair, Mark A. Lewis, Giselle K. Perez, Elyse R. Park, Anne C. Kirchhoff, Echo L. Warner
Supportive Care in Cancer.2023;[Epub] CrossRef - Comparison of Non-Invasive Clinical Algorithms for Liver Fibrosis in Patients With Chronic Hepatitis B to Reduce the Need for Liver Biopsy: Application of Enhanced Liver Fibrosis and Mac-2 Binding Protein Glycosylation Isomer
Mina Hur, Mikyoung Park, Hee-Won Moon, Won Hyeok Choe, Chae Hoon Lee
Annals of Laboratory Medicine.2022; 42(2): 249. CrossRef - Prevalence and incidence rates of laboratory-confirmed hepatitis B infection in South Africa, 2015 to 2019
Shelina Moonsamy, Melinda Suchard, Pavitra Pillay, Nishi Prabdial-Sing
BMC Public Health.2022;[Epub] CrossRef - A cross-sectional study of the psychological impact of the COVID-19 pandemic on camped refugees in Ghana
Barbara Sakyi, Fiifi Amoako Johnson, Guillermo Salinas-Escudero
PLOS ONE.2022; 17(11): e0277515. CrossRef - A community pharmacist-led smoking cessation intervention using a smartphone app (PharmQuit): A randomized controlled trial
Narong Asayut, Phayom Sookaneknun Olson, Juntip Kanjanasilp, Preut Thanarat, Bhattaraporn Senkraigul, Chuthathip Sittisarn, Suratsawatee Suksawat, Shahrad Taheri
PLOS ONE.2022; 17(3): e0265483. CrossRef - Accelerating caregivers’ HIV status disclosure to community-based lay social welfare volunteers in Tanzania
Amon Exavery, John Charles, Asheri Barankena, Erica Kuhlik, Godfrey Martin Mubyazi, Christina Kyaruzi, Tumainiel Mbwambo, Amal Ally, Remmy Mseya, Levina Kikoyo, Elizabeth Jere
AIDS Research and Therapy.2021;[Epub] CrossRef - Whole genome sequencing for the investigation of canine mammary tumor inheritance - an initial assessment of high-risk breast cancer genes reveal BRCA2 and STK11 variants potentially associated with risk in purebred dogs
Anna L. W. Huskey, Katie Goebel, Carlos Lloveras-Fuentes, Isaac McNeely, Nancy D. Merner
Canine Medicine and Genetics.2020;[Epub] CrossRef - Effectiveness of a short message service intervention to motivate people with positive results in preliminary colorectal cancer screening to undergo colonoscopy: A randomized controlled trial
Yanan Wu, Yingru Liang, Qin Zhou, Huazhang Liu, Guozhen Lin, Wenfeng Cai, Yan Li, Jing Gu
Cancer.2019; 125(13): 2252. CrossRef