Effect Size Calculator for Proportions | Calculate Cohen’s h


Effect Size Calculator for Proportions

Calculate Cohen’s h, Risk Ratio, and Odds Ratio to quantify the difference between two independent groups.



Number of positive outcomes in the first group.


Total number of subjects in the first group.


Number of positive outcomes in the second group.


Total number of subjects in the second group.


Visual Comparison of Group Proportions

Interpretation of Cohen’s h
Effect Size (h) Interpretation
~0.20 Small Effect
~0.50 Medium Effect
~0.80 Large Effect

What is Calculating Effect Size Using Proportions?

Calculating effect size for proportions is a statistical method used to quantify the magnitude of the difference between two groups when the outcome is binary (e.g., success/failure, yes/no, present/absent). While a p-value from a hypothesis test can tell you if a difference is statistically significant, it doesn’t describe how *large* or meaningful that difference is. That’s where effect size comes in.

This calculator is designed for researchers, data analysts, medical professionals, and marketers who need to compare two independent proportions. For example, you might want to know the effect size of a new drug (proportion of patients who recovered) compared to a placebo, or the effect size of a new website design (proportion of users who clicked a button) compared to the old one. Common measures include Cohen’s h, a standardized measure, and relative measures like the Risk Ratio (RR) and Odds Ratio (OR). Understanding these is crucial for a complete analysis. To learn more about the differences, you might read about risk ratio vs odds ratio.

Formulas for Effect Size and Related Metrics

Several key formulas are used when calculating effect size using proportions. This calculator computes the most important ones for you.

Cohen’s h Formula

Cohen’s h is the primary standardized effect size measure for two proportions. It is calculated after an arcsine transformation of the proportions to stabilize the variance. The formula is:

h = 2 * (arcsin(√P1) - arcsin(√P2))

Risk Ratio (RR) and Odds Ratio (OR)

These are relative effect size measures that are often easier to interpret in a practical context.

  • Risk Ratio (RR): The ratio of the probability (or risk) of an event occurring in one group to the probability of it occurring in another. A deeper dive is available in our article explaining the odds ratio explained.
  • RR = P1 / P2
  • Odds Ratio (OR): The ratio of the odds of an event occurring in one group to the odds in another group.
  • OR = (P1 / (1 - P1)) / (P2 / (1 - P2))
Variables Used in Calculations
Variable Meaning Unit Typical Range
P1 Proportion of events in Group 1 Unitless Ratio 0 to 1
P2 Proportion of events in Group 2 Unitless Ratio 0 to 1
h Cohen’s h effect size Standard Deviations -π to +π
RR Risk Ratio Unitless Ratio 0 to ∞
OR Odds Ratio Unitless Ratio 0 to ∞

Practical Examples

Example 1: Clinical Trial

A pharmaceutical company tests a new drug. In the treatment group, 65 out of 150 patients show improvement. In the control (placebo) group, 40 out of 150 patients show improvement.

  • Inputs:
    • Group 1 (Treatment): 65 events, 150 total
    • Group 2 (Control): 40 events, 150 total
  • Results:
    • P1 = 0.433, P2 = 0.267
    • Cohen’s h ≈ 0.34 (a small-to-medium effect)
    • Risk Ratio ≈ 1.62 (The treatment group is 1.62 times more likely to improve)
    • Odds Ratio ≈ 2.07 (The odds of improving are over twice as high in the treatment group)

Example 2: A/B Testing in Marketing

An e-commerce site tests a new “Buy Now” button color. The new button (Group A) gets 80 clicks out of 1000 visitors. The old button (Group B) gets 50 clicks out of 1000 visitors.

  • Inputs:
    • Group 1 (New Button): 80 events, 1000 total
    • Group 2 (Old Button): 50 events, 1000 total
  • Results:
    • P1 = 0.08, P2 = 0.05
    • Cohen’s h ≈ 0.11 (a small effect)
    • Risk Ratio = 1.60 (Visitors are 1.6 times more likely to click the new button)
    • Odds Ratio ≈ 1.65 (The odds of a click are 65% higher with the new button)

For more advanced analysis, a Cohen’s h calculator can provide further insights.

How to Use This Calculator for Calculating Effect Size Using Proportions

Using this tool is straightforward. Follow these steps for an accurate analysis:

  1. Enter Group 1 Data: Input the number of ‘events’ (or successes) and the total sample size for your first group (e.g., the treatment or experimental group).
  2. Enter Group 2 Data: Do the same for your second group (e.g., the control or baseline group).
  3. Review the Results: The calculator automatically updates. The primary result, Cohen’s h, gives you a standardized effect size. The intermediate values provide the proportions (P1, P2) and relative measures (RR, OR).
  4. Interpret the Output: Use the chart to visually compare the proportions and the table to interpret the magnitude of Cohen’s h. A value around 0.2 is small, 0.5 is medium, and 0.8 or higher is large.
  5. Copy Results: Use the “Copy Results” button to easily transfer the key metrics to your research notes or report.

Key Factors That Affect Effect Size for Proportions

  • Magnitude of the Difference: The larger the absolute difference between the two proportions, the larger the effect size will be.
  • Baseline Proportion: Effect sizes like Cohen’s h are more sensitive to changes in proportions near 0 or 1 than to changes near 0.5. For instance, the difference between 0.90 and 0.95 yields a larger ‘h’ than the difference between 0.50 and 0.55.
  • Sample Size (Indirectly): While sample size doesn’t directly change the calculated effect size from the sample data, it heavily influences the *confidence* in that effect size. Larger samples lead to more stable and reliable effect size estimates. Considering statistical power and effect size is crucial during experiment design.
  • One-Tailed vs. Two-Tailed Hypothesis: Your research question (are you looking for any difference, or a difference in a specific direction?) frames how you interpret the sign of Cohen’s h.
  • Choice of Effect Size Metric: Risk Ratio and Odds Ratio can tell different stories, especially when the event is common. The OR will always be further from 1.0 than the RR, a distinction that is vital to understand.
  • Independence of Samples: This calculator assumes the two groups are independent. If you are using a pre-test/post-test design on the same group, different calculations (like McNemar’s test) are required.

Frequently Asked Questions (FAQ)

1. What’s the difference between effect size and p-value?

A p-value tells you if there is a statistically significant effect (i.e., if it’s unlikely to be due to random chance), whereas effect size tells you the *magnitude* or *importance* of that effect. A tiny, unimportant effect can be statistically significant with a large enough sample size. Always report both. For a better understanding, read our guide on p-value vs effect size.

2. When should I use Odds Ratio vs. Risk Ratio?

Risk Ratio (RR) is generally more intuitive (“twice as likely”). It’s best used in cohort studies or randomized controlled trials. Odds Ratio (OR) is necessary for case-control studies and is also the output of logistic regression. When an event is rare, the OR is a good approximation of the RR. When it’s common, the OR can exaggerate the effect size.

3. What does a negative Cohen’s h mean?

A negative Cohen’s h simply means that the proportion in Group 2 (P2) is larger than the proportion in Group 1 (P1). The magnitude (the absolute value) is what you use to determine if the effect is small, medium, or large.

4. Are the values from this calculator unitless?

Yes. Proportions, ratios (RR, OR), and standardized measures like Cohen’s h are all unitless. They describe relative differences or standardized magnitudes, not physical quantities.

5. Can I enter percentages instead of raw numbers?

No, this calculator requires the raw number of events and the total sample size for each group to perform the calculations correctly. You can easily convert percentages to counts if you know the sample size (e.g., 25% of 200 is 50 events).

6. What is the ‘arcsine transformation’ and why is it used?

The arcsine transformation (or angular transformation) is a mathematical function applied to proportions to stabilize their variance. Proportions near 0 or 1 have very small variance, while proportions near 0.5 have the largest. This transformation spreads them out more evenly, making comparisons more reliable, which is essential for calculating Cohen’s h.

7. How large should my sample size be to get a meaningful effect size?

This depends on the expected effect size and the desired statistical power. A power analysis should be conducted before an experiment. Smaller expected effect sizes require larger samples to be detected reliably.

8. What is a “large” effect size in my field?

Cohen’s guidelines (0.2, 0.5, 0.8) are general rules of thumb. The practical importance of an effect size is context-dependent. In medicine, a “small” effect could save thousands of lives. In marketing, a “large” effect might be needed to justify a change. It’s important to be familiar with the literature in your specific domain when interpreting effect size.

Disclaimer: This calculator is for educational and informational purposes only. Consult with a qualified professional for critical applications.



Leave a Reply

Your email address will not be published. Required fields are marked *