ForHosting KIT · Developer Utilities

Standard Error of Difference of Proportions Calculator

The standard error of a difference between proportions describes how much the observed gap between two independent sample proportions would typically vary across repeated samples.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Enter each proportion as a decimal and provide its sample size. The calculator combines the two binomial sampling variances and returns both the standard error and the signed observed difference. It is useful when preparing a confidence interval, checking a two-proportion analysis, or comparing rates from separate groups without manually evaluating the formula.

What the standard error tells you

Two samples can report different proportions even when the underlying populations are similar, because sampling introduces ordinary random variation. The standard error estimates the typical size of that variation for the difference between the two observed proportions. A smaller value means the estimated difference is more precise, while a larger value means repeated samples could produce a wider range of differences. The result does not say whether a difference is important, causal, or statistically significant by itself. Instead, it supplies the scale needed for later calculations such as an unpooled confidence interval or a standardized statistic. For example, a difference of 0.07 has a different interpretation when its standard error is 0.01 than when its standard error is 0.08. Always consider the study design, measurement quality, and practical context alongside the number. This calculator assumes that the two samples are independent, so it is not appropriate for paired observations, repeated measurements on the same people, or matched cases and controls.

How the calculation works

For each group, the calculator evaluates the estimated binomial variance of its sample proportion: p multiplied by one minus p, divided by the sample size n. It adds the two independent variance terms and takes the square root. In symbols, the result is the square root of p1(1-p1)/n1 plus p2(1-p2)/n2. This is the unpooled standard error, meaning each group keeps its own observed proportion. It is commonly used when estimating the uncertainty of the observed difference and constructing an unpooled confidence interval. Some hypothesis tests instead use a pooled proportion under a null hypothesis of equal population proportions; that is a different calculation and is intentionally not performed here. Proportions must be entered as decimals between zero and one, inclusive, so 42% should be entered as 0.42. Each sample size must be a whole number of at least one. The returned difference is proportion one minus proportion two, so reversing the groups changes the sign of the difference but not the standard error.

Use the result responsibly

Begin by confirming that each proportion was calculated from the sample size entered for the same group. Then check whether the observations within each group are reasonably independent and whether the groups themselves are independent. The familiar large-sample confidence interval based on this standard error may perform poorly when a sample is small or a proportion is very close to zero or one. A quick diagnostic is to inspect the expected counts n times p and n times one minus p in both groups; very small counts suggest that an exact or alternative interval may be more suitable. The calculator still returns the arithmetic standard error for valid inputs, but it cannot determine whether a particular inferential method is justified. You can multiply the result by a chosen critical value to obtain a margin around the observed difference when the relevant approximation is appropriate. Report the two proportions, sample sizes, observed difference, method, and confidence level so readers can reproduce the analysis. Avoid treating statistical precision as proof of practical importance or as evidence that the group difference was caused by the grouping factor.

Compare conversion rates

Estimate the sampling uncertainty around the difference in conversion proportions from two independent experiment groups.

Review survey responses

Check the precision of a difference in response rates between independently sampled populations.

Validate an analysis

Recalculate the unpooled standard error before building a confidence interval for two proportions.

What does it cost?

The API price is $0.002 per request, and the browser calculator is free to use on this page.

Should I enter percentages or decimals?

Enter decimals from 0 to 1. For example, enter 37% as 0.37.

Does this calculator pool the two proportions?

No. It uses each sample's own proportion in its variance term, producing the unpooled standard error.

Can I use it for paired data?

No. The formula assumes independent samples and does not account for correlation between paired observations.

Why must each sample size be at least one?

Each variance term divides by its sample size, so zero or a negative size is undefined and is rejected.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/stat/se-diff-proportions

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/stat/se-diff-proportions \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"proportion_1":0.42,"sample_size_1":250,"proportion_2":0.35,"sample_size_2":300}'
{
  "proportion_1": 0.42,
  "sample_size_1": 250,
  "proportion_2": 0.35,
  "sample_size_2": 300
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "stat.se_diff_proportions",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →