How the math works
Every number on this site comes from a formula you can check. This page explains each one and what it assumes.
Paywall A/B tests
Every paywall view ends in one outcome: no purchase, or a purchase of one of the plans. For each variant we model those outcomes as a multinomial with unknown probabilities, and put a Dirichlet prior on them. The prior has weight 1 on "no purchase" and 1/K on each of the K plans. That works out to a flat prior on overall conversion, worth one imaginary view, so it stops mattering once a test has a few hundred views.
Revenue per view is the sum over plans of the probability of buying that plan times the plan's value after the store fee. Because plan values are known, the uncertainty in revenue per view comes entirely from the plan probabilities. We draw 20,000 samples from each variant's posterior with a fixed random seed, so the same inputs always produce the same answer.
From those draws we report:
- Chance it earns most: the share of draws in which the variant has the highest revenue per view.
- Range: the middle 95% of draws (a 95% credible interval).
- Revenue vs control: the relative difference to the first variant, as a median and a 95% range.
- Expected cost of being wrong: the average revenue per view you give up by shipping a variant, counting zero in the draws where it is the best.
We check the single-plan case against the exact closed-form probability for two Beta distributions in our test suite.
Filling it in from a file. The calculator can read a CSV or a pasted table in your browser. Columns are guessed from their names and you can change each guess. Purchases are added up per variant and plan. Views are counted once per variant for each combination of the file's other text columns, such as a date: a file with one row per variant, product and day repeats the day's views on each product row, so we take that value once instead of adding it up. Rows named Total are skipped. With a revenue column, each plan's value is its revenue divided by its purchases, pooled across variants, so both variants are valued the same way. If that revenue includes renewals or is already after store fees, edit the values.
When we say "Ship it"
We recommend a variant when it has at least a 95% chance of earning the most and its expected cost of being wrong is under 1% of average revenue per view. If every variant's expected cost is under that 1% line, we say there's no difference worth chasing. Before that, we say keep running. Tests with fewer than 200 views or 10 purchases in a variant are always "too early".
Frequentist checks
For people who need a p-value, we also show a two-sided pooled z-test for conversion and a Welch z-test for revenue per view. Each view's revenue is either zero or a plan value, so its variance follows from the plan counts.
Sample ratio mismatch
We compare the users in each group with the counts your planned split predicts, using a chi-square goodness-of-fit test with one fewer degree of freedom than there are groups. We flag a mismatch when p is below 0.001. That threshold is the common industry convention: a real mismatch nearly always comes from a bug, and a strict cutoff avoids false alarms when you check every day.
Sample size and duration
For conversion, views per variant are
n = (zα/2 √(2 p̄ (1 − p̄)) + zβ √(p1(1 − p1) + p2(1 − p2)))² / (p2 − p1)²
where p1 is the current conversion, p2 is p1 times one plus the change you want to detect, and p̄ is their average. A 5% baseline and a 20% change at 95% confidence and 80% power needs 8,158 views per variant.
For revenue per view we use n = 2 (zα/2 + zβ)² σ² / δ², with σ² the variance of one view's revenue under your current plan mix and δ the change in revenue per view. Revenue varies much more between people than a yes or no purchase does, so revenue tests need more traffic.
Duration is total views needed divided by daily paywall views times the share of traffic in the test, rounded up to whole days.
Lifetime value and payback
For each plan we assume payments at the start of every billing period from day 0 until the end of the time frame. A share of first payments is refunded, and refunded subscribers never renew. Each renewal happens with the same probability. Lifetime value per subscriber is then
LTV = price × (1 − store fee) × (1 − refund rate) × (1 − rN) / (1 − r)
where r is the renewal rate and N the number of billing periods inside the time frame. Per install, we multiply by the share of installs that subscribe. Payback is the first payment day on which cumulative revenue per install covers the cost per install.
Price increase break-even
We compare what one paywall view earns over the time frame at each price: conversion times price times one minus the store fee times the expected payments per subscriber, (1 − rN) / (1 − r), as in the LTV model. The new price breaks even at the conversion where both are equal:
c* = c0 × (p0 × E0) / (p1 × E1)
where c0 is today's conversion, p the prices and E the expected payments per subscriber at each price. The store fee and refund rate are assumed equal at both prices, so they cancel out. With the same renewal rate at both prices, the most buyers you can lose is 1 − p0 / p1: going from $9.99 to $12.99, that's 23.1%. If people renew less at the higher price, the room shrinks.
The test size is the two-proportion formula from the sample size section, with p2 set to the break-even conversion: the views per price a 50/50 test needs to tell a drop that large from no drop. It only covers new buyers. Moving existing subscribers to a new price is a different decision with its own churn.
Free trial vs hard paywall
We compare what one paywall view earns over the time frame on each path. With a hard paywall, a share h of views buy and pay on day 0. With a free trial, a share t of views start a trial, a share q of those convert, and they pay their first period when the trial ends on day T. After that, both renew each period with their own rate r. Payments fall on the start day and every billing period after it, strictly before the end of the time frame, so the trial can fit one payment fewer.
value per view = paid share × price × (1 − store fee) × (1 − rN) / (1 − r)
with paid share h for the hard paywall and t × q for the trial, and N the payments inside the time frame on each path. The trial breaks even at the trial-to-paid rate
q* = h × Ehard / (t × Etrial)
where E is the expected payments per subscriber. With equal renewal rates and the same number of payments, that is simply h / t: if 3% of views buy outright and 10% start a trial, the trial needs 30% of trials to convert. The test size is the two-proportion formula from the sample size section, comparing h with t × q, plus the trial length, because the last trials in a test need to end before you can read it. The model leaves out refunds and the different refund behavior of trial converters.
Free trial length
Each trial length i has its own trial start rate ti (share of paywall views that start it) and trial-to-paid rate qi. Converters pay their first period when the trial ends on day Ti, then renew each period with one shared rate r. Payments are counted as in the free trial vs hard paywall model: on the first payment day and every billing period after it, strictly before the end of the time frame, so a longer trial can fit one payment fewer.
value per viewi = ti × qi × price × (1 − store fee) × (1 − rNi) / (1 − r)
The trial-to-paid rate another length needs to earn as much as the best one is
qi* = qbest × (tbest × Ebest) / (ti × Ei)
where E is the expected payments per subscriber. When both fit the same payments and start equally often, that is just the best length's trial-to-paid. The test size is the two-proportion formula from the sample size section between the two highest paid shares t × q, with the 5% false positive rate split evenly over every pair of options (Bonferroni: 1.67% each for three lengths), plus the longest trial so its last trials can end. The model assumes one renewal rate for every length and leaves out refunds.
Checking a test early (peeking)
The low traffic guide says how often daily checks produce a false winner. We simulate 20,000 tests of two identical paywalls. After each equal batch of data we run a two-sided z-test and stop the first time p is below 0.05. In large samples the z statistic after k batches is Sk / √k, where Sk is a sum of k independent standard normal steps, so the simulation draws that random walk directly with a fixed seed. We count the share of tests that cross the line at least once. With one look it is 5% by design; with 30 daily looks it is about 28%. Our tests check the simulation against Armitage, McPherson and Rowe (1969), Table 2: 8.3% at 2 looks, 14.2% at 5, 19.3% at 10 and 24.8% at 20.
What these calculators can't tell you
- They assume each view is independent. If the same person sees the paywall many times, count people, not impressions.
- They don't model free trials converting later. Wait until most trials have ended, or test on trial starts and track trial-to-paid separately.
- A constant renewal rate is a simplification. Real retention usually drops fastest after the first renewal.
- Novelty effects, seasonality and marketing pushes during a test can all move results. Run tests over full weeks.