What is an equivalence test?

An equivalence test establishes that two options perform similarly by ruling out the possibility that the difference between groups exceeds a pre-specified range. This allows you to claim that the options are equivalent — something an ordinary experiment with a non-significant result cannot establish.

Also called
tost, two one-sided tests, equivalence testing, practical equivalence
Allon Korem

Written by Allon Korem

Chief Executive Officer

Last updated

Design experiments inside Claude with Bell's MCP serverIt runs the Bell Statistics engine as tools your assistant can call — geo test design and measurement today, A/B testing next.

Get the MCP server

In plain English

Standard significance tests are built to detect differences, and they cannot establish sameness. The reason lies in their structure. You start by assuming the null hypothesis that there is no difference, then try to reject it. If you succeed, you can claim a difference exists. If you fail, the null is not confirmed: a difference may still exist, and you simply didn't gather enough evidence to show it. It's tempting to read "not significant" as "no difference," but the logic is closer to proof by contradiction. Contradicting an assumption shows it's false; failing to contradict it doesn't show it's true. This matters because "the two are effectively the same" is a genuinely useful conclusion, and the ordinary machinery can't produce it.

Equivalence tests are designed for exactly this purpose. They can't prove that a difference is exactly zero, since no finite sample can rule out arbitrarily small differences. Instead, you decide in advance on a band of differences too small to matter, such as plus or minus one percentage point of conversion, and ask whether the true difference lies inside it.

The trick is to invert the hypotheses. An equivalence test starts from the assumption that a meaningful difference does exist and requires the data to rule it out. You run two one-sided tests: one ruling out a difference below the lower edge of the band, and one ruling out a difference above the upper edge. Pass both and you've established equivalence. This pair of tests is the TOST procedure (two one-sided tests), and it is the standard implementation.

In practice, the result can be read straight off a confidence interval. If the entire 90% interval for the difference sits inside the band, the two are equivalent at the 5% level; if it extends past either edge, they are not. This also makes the relationship to a non-inferiority test clear. Non-inferiority checks only the lower edge, because it only cares about not being worse, while equivalence checks both. Non-inferiority is the more common need in product work. Equivalence matters when being better would also be a problem, as with a supposedly cosmetic refactor that shouldn't change behavior at all.

SuperiorityNon-inferiorityNon-superiorityEquivalence−Δ0+ΔDifference between variants (new − old)
Figure 1. Where the confidence interval must lieSuperiority needs the confidence interval on the difference entirely above zero; non-inferiority only above −Δ; non-superiority only below +Δ; equivalence inside both edges at once.

The cost is sample size. Showing that a difference lies within a band takes more data than detecting a difference of the same size, and the gap widens quickly if the true difference isn't zero but sits partway toward the edge. Narrow bands get expensive fast, since halving the band roughly quadruples the required sample. This is why equivalence testing is common in pharmaceutical bioequivalence, where regulators set the band, and rare in product experimentation, where teams usually settle for the cheaper one-sided question.

The formula

Two one-sided tests, one against each edge of the band. Both must be rejected for equivalence to be claimed, which is why the procedure is named for the pair rather than for a single statistic.

The hypotheses
H₀: |μ₁ − μ₂| ≥ Δ H₁: |μ₁ − μ₂| < Δ

The null is that a meaningful difference exists. Inverting the usual direction is the entire idea. Δ is the equivalence margin: the largest difference you'd consider practically irrelevant, fixed before seeing the data.

The two one-sided tests (TOST)

To examine whether the null hypothesis can be rejected, we divide it into two parts. Each is an ordinary one-sided t-test, comparing the observed difference against an edge of the band instead of against 0. Test 1 measures how many standard errors x̄₁ − x̄₂ sits above −Δ; test 2, how far it sits below +Δ. Rejecting both rules out both pieces of the null, leaving −Δ < μ₁ − μ₂ < +Δ. Each test uses the full α, not α/2: the true difference can lie in only one piece of the null, so only one test can falsely reject, and a false equivalence claim needs both. The TOST p-value is the larger of the two one-sided p-values. See the equivalence calculator.

QuantityH₀H₁StatisticReject H₀ if
Test 1 (lower edge)μ₁ − μ₂ + Δ ≤ 0μ₁ − μ₂ + Δ > 0t₁ = (x̄₁ − x̄₂ + Δ) / SEt₁ > t₁₋α
Test 2 (upper edge)μ₁ − μ₂ − Δ ≥ 0μ₁ − μ₂ − Δ < 0t₂ = (x̄₁ − x̄₂ − Δ) / SEt₂ < −t₁₋α
The interval shortcut
equivalent ⟺ the whole ( 1 − 2α ) CI lies within ( −Δ, +Δ )

For α = 0.05 this is a 90% interval, not 95%: two one-sided tests at 5% each correspond to a 90% two-sided interval.

Worked example

An engineering team refactors the checkout to remove a legacy dependency. It is meant to be behaviourally identical, and the team needs to demonstrate that rather than assume it. They agree on a band of ±0.5 percentage points around a 6.2% conversion rate, since anything inside that is genuinely cosmetic. The test runs on 140,000 users per arm. With samples this large, each one-sided test is a z-test, with critical value z₀.₉₅ = 1.645.

Equivalence band (Δ)
±0.5 percentage points
Legacy checkout
6.21% conversion
Refactored checkout
6.14% conversion
Observed difference (refactored − legacy)
−0.07 pp
Standard error of the difference
0.091 pp
Test 1 (lower edge): z₁ = (−0.07 + 0.5) / 0.091
4.73 > 1.645 → reject
Test 2 (upper edge): z₂ = (−0.07 − 0.5) / 0.091
−6.27 < −1.645 → reject
90% CI on the difference
−0.22 pp to +0.08 pp
Both bounds inside ±0.5?
Yes

Equivalence established. TOST rejects both one-sided nulls, with p < 0.001 in each direction.

Test 1 · lower edgeH₀: μ₁ − μ₂ + Δ ≤ 0 vs H₁: μ₁ − μ₂ + Δ > 0reject H₀ (α = 0.05)−6−4−20461.645z₁ = 4.73Test 2 · upper edgeH₀: μ₁ − μ₂ − Δ ≥ 0 vs H₁: μ₁ − μ₂ − Δ < 0reject H₀ (α = 0.05)−6−40246−1.645z₂ = −6.27Test statistic (z)
Figure 2. The two one-sided tests, checkout exampleEach panel is the standard normal distribution of its test statistic under the null, with the 5% rejection region shaded. Both observed values sit far out in their tails, where the curve is nearly flat, so both tests reject decisively.

This is what a clean equivalence result looks like. The interval sits well inside the band with room on both sides, so the conclusion doesn't hinge on exactly where the band was drawn. Contrast this with the ordinary reading of the same data: a two-sided test gives p = 0.44, which on its own says nothing about sameness. It would have been reported as "no significant difference," a phrase that can mean "we didn't look hard enough" just as easily as it means what the team wanted. Two things are worth noting. First, the interval is a 90% one, not 95%, which surprises people. Two one-sided tests at 5% correspond to a 90% two-sided interval, and using 95% makes the procedure needlessly conservative. Second, 140,000 users per arm is more than this question needed. About 40,000 per arm would have given 80% power to establish equivalence within ±0.5 pp, only slightly more than the roughly 37,000 needed to detect a half-point difference. The extra data bought precision: with this sample, the team could have claimed equivalence within a band about half as wide.

Common misconceptions

“A high p-value means the two variants are equivalent.”
It means no difference was detected. An underpowered test may produce that outcome regardless of the truth. Equivalence has to be established positively, by ruling out differences larger than a band you specified in advance.
“Equivalence testing and non-inferiority testing are the same thing.”
Non-inferiority checks one bound — not worse by more than the margin — and is indifferent to how much better the new version might be. Equivalence checks both, so it also rules out being meaningfully better. Use non-inferiority when an improvement is welcome, and equivalence when a change in either direction would mean something went wrong, such as a refactor meant to be behaviourally identical.
“Use the 95% confidence interval to judge equivalence at the 5% level.”
The correct interval is 90%. TOST runs two one-sided tests at 5% each, and that corresponds to a two-sided 90% interval rather than a 95% one. Using 95% is not wrong in the sense of being invalid — it is conservative, and it will fail some tests that genuinely met the standard, at real cost in sample size.

Frequently asked questions

How do I decide the equivalence band?
It is the largest difference you would still call irrelevant, and it has to be argued from the business rather than derived from the data. A useful discipline is to state it as a consequence: at what change in conversion would anyone actually do something differently? Set the band just inside that. Then check the sample size, because the requirement scales with the square of the band and a narrow one can be unaffordable.
Why does equivalence testing need more data than a normal test?
Because pinning a difference inside a band is a stronger claim than distinguishing it from zero. A standard test only has to establish which side of zero the effect sits on; an equivalence test has to establish that the effect lies within a specified region, and that means the confidence interval must be narrow enough to fit inside it. Roughly, expect to need more data than detecting an effect the size of your band would require.
When would a product team actually need an equivalence test?
Most often for changes meant to be behaviourally invisible: refactors, infrastructure migrations, replacing a vendor with an in-house implementation, or rebuilding a page in a new framework. In all of those a difference in either direction signals that something changed which was not supposed to. When only the downside matters — a cheaper vendor, a simpler design — non-inferiority asks the cheaper question and is usually the better fit.

Related terms

  • Confidence interval

    The range your data can actually support, and why it answers the business question a p-value cannot.

  • Non-inferiority test

    Not "is it better" but "is it not meaningfully worse" — and the margin you choose decides the entire answer.

  • Statistical power

    The probability your test finds a real effect — and why most tests that report nothing were never able to.

  • T-test

    The workhorse for comparing two averages — and the four assumptions that decide whether its answer means anything.

Calculate it

  • Equivalence: two means

    Show two averages are close enough to be interchangeable — set the margin, size the study, run both one-sided tests.

  • Equivalence: two proportions

    Prove two rates are close enough to swap — margin in percentage points, sample size, then both one-sided tests.

Knowing the term is the easy part

Applying it to a live measurement problem is the part that goes wrong. If you are designing an experiment, reading a result you do not trust, or trying to work out what your marketing actually caused, that is the work we do.

Design experiments inside Claude with Bell's MCP server

Get the MCP server