Interactive module guide

One Proportion Z Test Calculator — Free & Fast

This one proportion z test calculator evaluates a sample proportion against a hypothesized value and reports a Wilson confidence interval and Cohen’s h.

Open calculator

Free · No sign-up · Calculations stay in your browser

The one-proportion z-test evaluates whether a population proportion differs from a hypothesized value p₀ by standardizing the sample proportion with the null standard error √(p₀(1−p₀)/n).

This calculator takes summary counts, reports the z statistic, a tail-specific p-value, a Wilson score confidence interval for p, and Cohen’s h, and warns when the expected counts are too small for the normal approximation to be trusted.

Use the one proportion z test calculator when independent yes/no outcomes are compared with a target proportion and both expected counts reach about ten.

When to use this one proportion z test calculator

Use it when

  • Use this test when one sample of independent yes/no outcomes is compared against a fixed benchmark proportion, such as a contracted defect rate, a historical response rate, or an even split. The benchmark must come from outside the sample rather than from the same data.
  • It fits designs where the number of trials was set in advance and each trial has the same success probability, for example a fixed batch of inspected units, a planned number of survey contacts, or a predetermined number of experimental runs.
  • Choose the normal-approximation version when both expected counts, n·p₀ and n·(1−p₀), are at least about ten. In that regime the z reference is accurate, the calculation is transparent, and the Wilson interval gives a sensible uncertainty statement for the estimated proportion.

Choose another method when

  • Do not use it when expected successes or failures fall below about ten. The discrete binomial distribution is then poorly approximated by a normal curve, and the exact binomial test in this calculator is the defensible replacement at no extra cost.
  • Avoid it when outcomes are dependent: clustered sampling, repeated measurements of the same units, or contagion between trials all violate the independence assumption, and the reported standard error will be too small.
  • It is also the wrong tool for comparing two observed groups with each other; that question belongs to the two-proportion z-test, which treats both proportions as estimates rather than fixing one of them as a known benchmark.

Interactive tool

The calculator loads as you approach this section so the guide remains fast on mobile connections.

Example preview

Support rate against a target

Inputs
x=54 successes in n=80 trials against p₀=0.6; two-sided z test.
Representative result
p̂=0.675, z≈1.369, p≈0.171; the 95% Wilson interval spans ≈ [0.566, 0.768].

Illustrative only. Load the interactive tool to enter your own values and review assumptions.

Watch the explanation

4:16 min

The player loads only after you press play. You can also watch on YouTube.

Read the complete transcript

The One-Proportion z-Test. A support rate of sixty-seven point five percent looks higher than a sixty percent target. The one-proportion z-test asks whether that gap is convincing. Start with one sample of yes-or-no outcomes. Record x successes out of n trials, then compute p-hat as x divided by n. The null hypothesis fixes the population proportion at p-zero. The alternative says it differs, exceeds, or falls below that benchmark. Because the test assumes the null while measuring surprise, its standard error uses p-zero, not the observed p-hat. Subtract the benchmark from p-hat, then divide by the null standard error. The z statistic counts null standard errors from the claim. A two-sided test counts both tails beyond the magnitude of z. A directional test counts only its pre-specified tail. Compare the p-value with alpha. Reject when p is at most alpha; otherwise fail to reject, without declaring the benchmark proven.

The normal approximation needs independent Bernoulli trials, a constant success probability, and a sample representing the population of interest. Check expected counts under the null. Both n times p-zero and n times one minus p-zero should reach about ten. If either expected count is small, use the exact binomial test. The normal curve can miss important discrete tail behavior. Choose left, right, or two-sided before inspecting the result. Switching the direction after seeing the data inflates false positives. Distri Scope reports a Wilson score interval. Unlike the shortcut Wald interval, it stays between zero and one and need not be symmetric. Cohen's h places the observed and benchmark proportions on an arcsine scale, adding a standardized view of practical magnitude. One sample versus a fixed benchmark belongs here. Two observed independent groups need a two-proportion test; paired outcomes need a paired method.

Suppose an auditor observes fifty-four satisfied participants among eighty independent responses and tests a sixty percent benchmark at alpha point zero five. The sample proportion is fifty-four over eighty, or zero point six seven five: seven point five percentage points above the benchmark. Under the null, expect forty-eight successes and thirty-two failures. Both exceed ten, so the approximation gate passes. The null standard error is about zero point zero five four eight. Dividing the observed gap by it gives z about one point three six nine. The two-sided p-value is about zero point one seven one. That exceeds zero point zero five, so we fail to reject the null. The ninety-five percent Wilson interval runs from about zero point five six six to zero point seven six eight and contains zero point six. Cohen's h is about zero point one five six, a small standardized difference. The evidence is inconclusive, not proof of equality.

Keep counts, not only a rounded percentage. Sixty-seven point five percent from eighty trials carries less precision than the same rate from eight thousand. The benchmark must come from a contract, historical record, or design target chosen independently of this sample. Validate whole counts with zero at most x at most n, require n positive, and keep p-zero strictly between zero and one. Do not treat dependent responses, clustered surveys, or repeated observations as independent trials. Their uncertainty needs design-aware methods. Statistical significance is not practical importance. Read the p-value together with the Wilson interval, Cohen's h, and the real decision threshold. Report x, n, p-hat, p-zero, alternative, alpha, expected counts, z, p-value, Wilson interval, effect size, and the exact conclusion. Run and audit the one-proportion z-test, Wilson interval, and effect size free at Distri Scope dot com.

How to read the result

Read the z statistic as the number of null standard errors separating p̂ from p₀, the p-value as the probability of a discrepancy at least this large under the null, and the Wilson interval as the range of population proportions compatible with the data at the stated confidence.

Cohen’s h expresses the difference between p̂ and p₀ on an arcsine scale where equal distances mean comparable detectability. Report it alongside the p-value so a reader can distinguish a trivially small but significant difference from a practically meaningful one.

How to use the one proportion z test calculator

Enter the number of successes x and the number of trials n as whole counts, not percentages. The calculator derives p̂ = x/n itself; entering a rounded percentage loses information and can flip a borderline conclusion.

Enter the hypothesized proportion p₀ strictly between 0 and 1. It represents the claim being tested, so it should be justified by a contract, a historical record, or a design target and written down before the data are inspected.

Choose the tail direction from the scientific question, not from the observed data. The two-sided version asks whether p differs from p₀ in either direction; the one-sided versions must be pre-specified, and the reported interval remains the standard two-sided one.

Formula, hypotheses, and assumptions

z=p^p0p0(1p0)/nz = \frac{\hat{p} - p_0}{\sqrt{p_0(1-p_0)/n}}

Conditions to review

  • Observations are independent Bernoulli trials with a constant success probability
  • The sample is randomly selected from the population of interest
  • Expected successes n·p₀ and failures n·(1−p₀) are both at least 10 for the normal approximation

Calculator parameters

  • Number of Successes (x): default 54.
  • Number of Trials (n): default 80.
  • Hypothesized Proportion (p₀): default 0.5.
  • Significance Level (α): default 0.05.
  • Test Type: default Two-tailed.

What the method is doing

The standard error uses p₀ rather than p̂ because the test works under the null hypothesis: if p equals p₀, the sampling variability of p̂ is √(p₀(1−p₀)/n). This is why a test decision and a confidence interval built from p̂ can disagree slightly near the boundary.

The reported interval is the Wilson score interval, which inverts the score test rather than adding a symmetric margin to p̂. Unlike the shortcut Wald interval, it cannot escape the interval from 0 to 1, and its coverage stays close to the nominal level even for moderate samples.

Worked example: support against a 60% benchmark

A program claims at least 60% participant satisfaction. An auditor samples independent responses and observes x = 54 satisfied participants among n = 80, so p̂ = 0.675. The plan specifies a two-sided test at α = 0.05 against p₀ = 0.6, and the expected counts 48 and 32 comfortably exceed ten.

  1. 1Enter x = 54, n = 80, p₀ = 0.6, and keep the two-sided alternative. The null standard error is √(0.6·0.4/80) ≈ 0.0548, so z = (0.675 − 0.6)/0.0548 ≈ 1.369.
  2. 2Read the p-value of about 0.171. Under a true proportion of 0.6, a sample proportion at least this far from the benchmark in either direction would occur about 17% of the time, so the evidence does not clear the 5% bar.
  3. 3Read the 95% Wilson interval, approximately 0.566 to 0.768, and Cohen’s h ≈ 0.156, a small effect. The interval contains 0.6, agreeing with the non-rejection, while showing the data are also compatible with proportions well above the benchmark.

Interpretation

The audit does not contradict the 60% claim, but it does not confirm superiority either: the plausible range runs from slightly below the benchmark to well above it. A larger sample would narrow the interval; presenting the interval and effect size together prevents the common misreading of a non-significant result as proof that the proportion equals 0.6.

Common mistakes

  • Entering percentages instead of counts is the most common input error; the test needs x and n separately because the same percentage carries very different evidence at different sample sizes.
  • Choosing the tail after seeing the data inflates the false-positive rate. The direction must come from the pre-specified question.
  • Do not read a significant p-value as a large effect. With thousands of trials, a practically irrelevant difference of one percentage point can be highly significant; Cohen’s h and the interval carry the magnitude.

Limits and independent validation

The calculator accepts summary counts only; it does not parse raw yes/no records, weight complex survey designs, or adjust for clustering, and it does not compute power or required sample size.

The confidence interval reported is always the two-sided Wilson interval at 1 − α, which does not correspond one-to-one with a one-sided test decision.

Before using the result

  • Check the design before the arithmetic: independent trials, a fixed n, a benchmark chosen before inspection, and expected counts of at least about ten in both categories. If the counts are small, rerun the question in the exact binomial test.
  • Reproduce the z statistic by hand from x, n, and p₀, and confirm the p-value against an independent normal table. Record the counts, benchmark, tail, and α so the calculation can be repeated exactly.

See every option in the Statistical Hypothesis Test Calculator or review the DistriScope methodology. Educational information; last reviewed 2026-08-09. Verify consequential calculations independently.