Targetlytics.AI
Back to Blog

Calculate sample size from power without guessing at inputs

July 16, 2026
26 min read
By Kari Jääskeläinen
Calculate sample size from power without guessing at inputs

Turn power, alpha, and effect-size assumptions into defensible study sizes, sensitivity checks, and stakeholder-ready decisions before budget, timeline, or pipeline evidence is committed.

Calculate sample size from power without guessing at inputs

An analyst submits a single number: 7,682 observations.

Finance asks where the baseline rate came from. The product lead asks why a two-sided test was used. The CMO asks whether a one-percentage-point gain would still justify the campaign. Nobody can answer from the calculator output, so the team recalculates the study after budget and timing have already entered the approval cycle.

That is the common failure in power analysis. A calculator returns arithmetic. Approval requires a record of assumptions.

To calculate sample size from power, you must define the desired power, significance level, minimum meaningful effect, test direction, group allocation, and either a baseline rate or outcome variance. Change one of those inputs and the required sample can change sharply.

This guide gives you a repeatable workflow, two worked examples, formulas, sensitivity checks, code, and a preflight checklist. The aim is a study size that an analyst can reproduce and a stakeholder can challenge before money is committed.

What “sample size from power” means

Calculating sample size from power means finding the number of observations needed to detect a specified effect with a chosen probability, assuming that effect is real and the model assumptions hold.

The key terms are straightforward:

  • Power: The probability of rejecting the null hypothesis when the specified alternative is true. A target of 80% means beta, the Type II error probability for that alternative, is 20%.
  • Alpha: The probability threshold for a Type I error under the null hypothesis. A two-sided alpha of 0.05 places 0.025 in each tail.
  • Minimum meaningful effect: The smallest difference that would change a decision. For a conversion test, this might be an increase from 10% to 12%, rather than an arbitrary standardized label such as “small.”
  • Baseline rate or variance: Proportion tests need an expected baseline rate. Mean tests need a standard deviation, variance estimate, or standardized effect size.
  • Allocation ratio: The planned ratio between groups. Equal allocation usually needs the smallest total sample when observations have similar costs and variances.
  • Test direction: A one-sided test asks about change in one prespecified direction. A two-sided test allows evidence in either direction and therefore needs more observations at the same alpha and power.

The conceptual flow is:

business decision → minimum meaningful effect → statistical assumptions → required analyzable N → recruitment or traffic target

The arrow at the end matters. The formula usually gives analyzable observations. Nonresponse, exclusions, attrition, bot filtering, and missing outcomes must be added afterward.

For the technical details, go to the assumptions. If your inputs are ready, use the calculator workflow. The full calculations are in the worked examples.

Why a defensible N matters to budget and pipeline decisions

An underpowered study can miss an effect the business would care about. A badly specified study can also produce a large N for a difference too small to justify implementation. Both errors consume budget.

Button and colleagues reviewed neuroscience evidence and reported median statistical power of about 21% in the studies covered by their analysis. Their paper also explains why low power reduces the chance that a statistically significant finding reflects a true effect and can inflate reported effect estimates: “Power failure: why small sample size undermines the reliability of neuroscience”, published in PLOS Biology in 2013. That field-specific estimate should not be copied into a marketing plan, but the operating lesson transfers: weak input discipline creates weak evidence.

The NIST/SEMATECH e-Handbook of Statistical Methods gives the standard framing for Type I error, Type II error, power, and experiment design. It is a useful neutral reference when stakeholders need more than a vendor calculator page.

Consider a planning scenario for a revenue team:

  • Baseline qualified-conversion rate: 10%.
  • Minimum worthwhile rate: 12%.
  • Two-sided alpha: 0.05.
  • Power: 80%.
  • Equal allocation: 1:1.
  • Expected pipeline value per additional qualified conversion: €2,500.

The normal-approximation formula produces 3,841 analyzable visitors per group, or 7,682 total. At the planned difference, the treatment group produces about 77 more qualified conversions than its 10% counterfactual. At €2,500 in expected pipeline per additional conversion, that is roughly €192,500 in incremental expected pipeline.

That €192,500 is a scenario value, not a promised result. It depends on the conversion definition, attribution window, sales acceptance rate, and expected pipeline value. It does, however, give finance something useful: a comparison between the economic value of the minimum effect and the cost of reaching 7,682 valid observations.

If the minimum worthwhile gain is only one percentage point, from 10% to 11%, the requirement rises to 14,751 observations per group under the same approximation. Total N becomes 29,502. The traffic cost and decision time are now nearly 3.84 times the original plan.

This is why effect-size selection belongs in discovery, before a calculator is opened.

Start with the decision, then select the inputs

A minimum detectable effect should come from the decision threshold, prior evidence, or both. It should not be reverse-engineered until the sample fits the budget without telling stakeholders that the question changed.

Use this sequence.

1. Define the primary outcome

Write one measurable event and its observation window. “Pipeline improvement” is too broad. “Sales-accepted opportunity within 30 days of first qualified demo” is testable.

Use one primary outcome for the main power calculation. Secondary outcomes can be reported, but powering a study against whichever metric later looks favorable creates an interpretation problem.

2. Set the minimum meaningful effect

Ask what result would change the operating decision after implementation costs are included.

For an A/B test, state both the absolute and relative effect. Moving from 10% to 12% is:

  • A 2-percentage-point absolute increase.
  • A 20% relative increase.

Those are different descriptions of the same scenario. Confusing them is a common source of implausible sample estimates.

When prior data is scarce, use a range rather than pretending to know one effect precisely. Calculate N for an optimistic effect, a decision-threshold effect, and a conservative effect. Treat the decision-threshold scenario as the main plan.

3. Choose alpha and test direction before seeing results

A two-sided test is the normal default because a treatment can perform better or worse. A one-sided test can be valid when the direction is prespecified and an effect in the other direction would lead to the same action as no effect.

A one-sided test is not a convenient rescue for a study that failed to reach significance under a two-sided plan. Changing direction after seeing the data changes the error control.

4. Set power

Eighty percent and 90% are common planning targets, but neither is a universal rule. The cost of a false negative should drive the choice. A high-cost clinical decision and a low-cost website experiment do not carry the same risk.

Record beta explicitly. For 80% power, beta is 0.20. For 90% power, beta is 0.10.

5. Estimate the nuisance parameters

For proportions, use the baseline conversion rate. For continuous outcomes, use the standard deviation. Sources can include:

  • A recent period measured under the same event definition.
  • A pilot study run on the intended population.
  • A credible prior study with a similar population and measurement process.
  • A range of plausible values when no single estimate is defensible.

Do not borrow a baseline from a channel, market, or customer segment with materially different behavior merely because the number is available.

6. Decide allocation and inflate for loss

A 1:1 split is statistically efficient for two groups with comparable observation costs and variances. Unequal allocation can still make business sense when treatment capacity is constrained or one group costs more.

After calculating analyzable N, inflate for expected loss. If you need 3,841 valid observations per group and expect 80% retention after filtering, recruit or route:

3,841 ÷ 0.80 = 4,801.25

Round up to 4,802 per group. Never round down a sample-size requirement.

Calculator

A reliable interactive calculator should ask for the design before asking for numbers. Use the following input contract in a spreadsheet, statistics package, or calculator interface.

  1. Select the outcome type: binary proportion or continuous mean.
  2. Select the design: independent groups, paired observations, or another supported design.
  3. Enter the null and minimum meaningful values.
  4. Enter alpha and choose one-sided or two-sided.
  5. Enter desired power.
  6. Enter the allocation ratio, defined clearly as treatment N divided by control N or the reverse.
  7. Enter baseline rate, standard deviation, or both, as required by the design.
  8. Enter expected attrition or invalid-observation rate.
  9. Calculate analyzable N and recruited N separately.
  10. Save all inputs, formula version, software version, and rounding rule with the result.

The output should include more than total N. A review-ready result contains:

  • Required N for each group.
  • Total analyzable N.
  • Total recruitment or traffic target after inflation.
  • Absolute and relative effect assumptions.
  • Alpha, power, tails, and allocation ratio.
  • Formula or method used.
  • A sensitivity range for at least two alternative effects.

If a calculator reports only “N = 7,682,” it has completed the arithmetic and left the governance work to you.

Worked examples

Worked path 1: A/B test with two proportions

Suppose a product or demand-generation team wants to detect a conversion increase from 10% to 12%.

Inputs:

  • Control proportion, p1 = 0.10.
  • Treatment proportion, p2 = 0.12.
  • Absolute difference, delta = 0.02.
  • Average proportion, p-bar = (0.10 + 0.12) / 2 = 0.11.
  • Two-sided alpha = 0.05.
  • Power = 0.80.
  • Equal allocation.
  • z for 1 minus alpha/2 = 1.959964.
  • z for power = 0.841621.

For equal group sizes, a common normal-approximation sample size formula is:

n per group = [z(1-alpha/2) × sqrt(2 × p-bar × (1-p-bar)) + z(power) × sqrt(p1(1-p1) + p2(1-p2))]^2 ÷ (p2-p1)^2

Substitute the values:

n = [1.959964 × sqrt(2 × 0.11 × 0.89) + 0.841621 × sqrt(0.10 × 0.90 + 0.12 × 0.88)]^2 ÷ 0.02^2

Intermediate values:

  • sqrt(2 × 0.11 × 0.89) = 0.442493
  • sqrt(0.10 × 0.90 + 0.12 × 0.88) = 0.442267
  • First weighted term is about 0.86727.
  • Second weighted term is about 0.37222.
  • Their squared sum is about 1.536.
  • Divide by 0.0004 to get about 3,841.

Result: plan for 3,841 analyzable observations per group, or 7,682 total, under this approximation.

Different packages may return a nearby value because they use an iterative exact method, unpooled or pooled variance conventions, or a continuity correction. Record the method rather than silently selecting the smallest output.

Sensitivity for the A/B test

Change only alpha from 0.05 to 0.01, still two-sided:

  • z for 1 minus alpha/2 becomes 2.575829.
  • Required N becomes about 5,717 per group.
  • Total N becomes 11,434.
  • This is about 48.8% more than 3,841 per group.

Now restore alpha to 0.05 and cut the assumed absolute effect in half, from 2 percentage points to 1 percentage point. The comparison is 10% versus 11%:

  • Required N becomes about 14,751 per group.
  • Total N becomes 29,502.
  • This is about 3.84 times the original per-group requirement.

The increase is close to fourfold because sample size often varies approximately with the inverse square of the effect, though changing proportions also changes the variance terms. That relationship is a planning aid, not a substitute for recalculation.

Worked path 2: two-sample mean test

Suppose a team compares average sales-cycle days between two independent processes. The smallest useful difference is 5 days, and historical data suggests a standard deviation of 10 days in each group.

The standardized effect is:

d = difference ÷ standard deviation = 5 ÷ 10 = 0.50

Inputs:

  • Standardized effect, d = 0.50.
  • Two-sided alpha = 0.05.
  • Power = 0.80.
  • Equal allocation.
  • Equal standard deviations for planning.

The normal approximation is:

n per group = 2 × [z(1-alpha/2) + z(power)]^2 ÷ d^2

Substitute the values:

n = 2 × (1.959964 + 0.841621)^2 ÷ 0.50^2

n = 62.79

Round up to 63 analyzable observations per group, or 126 total. An iterative calculation based on the noncentral t distribution can require a slightly larger number, commonly 64 per group for these inputs. Use the iterative result when your software supports it and record the package and function.

The same formula can be written in raw units when the groups have equal variance:

n per group = 2 × sigma^2 × [z(1-alpha/2) + z(power)]^2 ÷ delta^2

With sigma = 10 and delta = 5, the result is the same 62.79 before rounding.

Sensitivity for the mean test

Using the stated normal approximation:

  • At two-sided alpha 0.01, d = 0.50, and 80% power, N rises to 94 per group.
  • At two-sided alpha 0.05, d = 0.25, and 80% power, N rises to 252 per group.
  • At one-sided alpha 0.05, d = 0.50, and 80% power, N falls to 50 per group.

The one-sided result is smaller because all alpha is placed in one tail. That saving is valid only when the directional hypothesis was justified and fixed before data review.

Technical note: where the mean-test formula comes from

For two independent groups with equal size n and common variance sigma squared, the standard error of the difference is sigma × sqrt(2/n).

Under the planning alternative, the standardized separation between the null and alternative distributions is delta ÷ [sigma × sqrt(2/n)].

Setting that separation to the sum of the relevant alpha and power quantiles gives:

delta ÷ [sigma × sqrt(2/n)] = z(1-alpha/2) + z(power)

Rearranging gives:

n = 2 × sigma^2 × [z(1-alpha/2) + z(power)]^2 ÷ delta^2

This derivation uses a normal approximation and known planning variance. A t-based program accounts for estimating variance from the sample.

Reproducible Python and R snippets

The following Python code reproduces the normal approximations above.

from math import sqrt, ceil
from scipy.stats import norm


def n_two_proportions(p1, p2, alpha=0.05, power=0.80, two_sided=True):
    z_alpha = norm.ppf(1 - alpha / 2) if two_sided else norm.ppf(1 - alpha)
    z_power = norm.ppf(power)
    p_bar = (p1 + p2) / 2
    numerator = (
        z_alpha * sqrt(2 * p_bar * (1 - p_bar))
        + z_power * sqrt(p1 * (1 - p1) + p2 * (1 - p2))
    ) ** 2
    return ceil(numerator / (p2 - p1) ** 2)


def n_two_means_standardized(d, alpha=0.05, power=0.80, two_sided=True):
    z_alpha = norm.ppf(1 - alpha / 2) if two_sided else norm.ppf(1 - alpha)
    z_power = norm.ppf(power)
    return ceil(2 * (z_alpha + z_power) ** 2 / d ** 2)


print(n_two_proportions(0.10, 0.12))
print(n_two_means_standardized(0.50))

For an iterative two-sample t-test in R:

power.t.test(
  delta = 5,
  sd = 10,
  sig.level = 0.05,
  power = 0.80,
  type = "two.sample",
  alternative = "two.sided"
)

Do not remove the inputs from the analysis record after running the code. The code is reproducible only when the assumptions and package versions travel with it.

A brand AI visibility experiment on the measurement floor

Brand AI visibility creates a useful example because the apparent unit count can be misleading.

Suppose a CMO wants to test an Answer Engine Optimization methodology intended to increase the share of eligible AI answers that recommend the brand. The current measured recommendation rate is 10%. The team decides that 12% would justify expanding the program.

On a simple two-proportion calculation, the study needs about 3,841 observations per group at 80% power and two-sided alpha 0.05. The team may think it can run 7,682 prompts and finish.

That conclusion depends on independence. Repeating the same prompt across minor wording changes, model versions, regions, or short time intervals can produce correlated observations. Correlation reduces the effective sample size. A raw log with 7,682 rows may contain much less than 7,682 independent units of evidence.

The measurement plan should define:

  • The prompt family and how paraphrases are grouped.
  • Eligible answer criteria.
  • What counts as a brand recommendation, citation, or mention.
  • Models, model versions, regions, and collection windows.
  • Whether the unit is a prompt, prompt family, user session, or model response.
  • How repeated observations will be handled.
  • Which changes occur in treatment and remain fixed in control.

Targetlytics provides AI visibility tracking and citation tracking, but measurement software does not decide the minimum worthwhile effect for you. The commercial threshold still belongs to the CMO, finance lead, and experiment owner.

A good AE or SDR should ask discovery questions that expose the calculation inputs before presenting a traffic requirement:

  • What action will you take if recommendation share rises from 10% to 12%?
  • What is the current baseline, over which prompt set and measurement period?
  • Does a mention count, or must the answer recommend and cite the brand?
  • How often are the same prompt families sampled?
  • Which model and region combinations matter to revenue?
  • What downside must the test detect, and does that require a two-sided design?
  • Are you comparing independent prompt sets or repeated measures on the same prompts?
  • How much measurement loss should we expect from invalid, blocked, or nonresponsive outputs?
  • What pipeline event will be linked to the visibility change, and over what attribution window?

These are statistical discovery questions and commercial discovery questions at the same time. They prevent pipeline leakage caused by promising an evidence threshold that the available prompt volume cannot support.

Where this method works, and where it does not

Works best for

  • Independent A/B tests with a binary outcome and a fixed analysis plan.
  • Two independent groups with a continuous outcome that is reasonably modeled by a mean and variance.
  • Product managers estimating A/B test sample size before launch.
  • Clinical researchers planning a simple, prespecified two-arm comparison under proper protocol and regulatory review.
  • Graduate students estimating survey sample size for a defined comparison, provided the sampling design is accounted for.
  • Revenue teams testing a fixed offer, page, qualification rule, or outreach process with stable event definitions.

Less effective without advanced methods or statistical review

  • Cluster-randomized designs, such as assigning treatment by company, sales territory, school, or clinic.
  • Repeated measurements from the same person, account, prompt family, or device.
  • Adaptive trials, sequential testing, or experiments checked continuously with ordinary fixed-horizon p-values.
  • Very rare events where normal approximations perform poorly.
  • Heavily skewed continuous outcomes, censored time-to-event data, or outcomes with many zeros.
  • More than two arms with several comparisons.
  • Regression models with many predictors, interactions, nonlinear terms, or an uncertain event-per-parameter ratio.
  • Surveys with weighting, stratification, clustering, and material nonresponse bias.
  • Noninferiority and equivalence designs, which require different hypotheses and margins.

The simple formulas fail in these settings because the nominal row count no longer maps cleanly to independent information under the assumed sampling distribution.

Assumptions

Every power-based sample size is conditional. State the conditions beside the result.

Independence

The formulas assume observations are independent within and across groups unless the model says otherwise. Account-level experiments often violate this when several users from one company receive the same treatment.

If randomization occurs by account but analysis occurs by user, use a cluster design. A common planning adjustment is the design effect:

design effect = 1 + (average cluster size - 1) × intraclass correlation

Multiply the individually randomized sample requirement by that effect as a rough first adjustment, then use design-specific software for the final plan.

Stable baseline and variance

A baseline conversion rate from a sale period may not describe ordinary traffic. A variance estimate from enterprise accounts may not describe self-serve customers.

Use a recent, comparable period and calculate sensitivity around the estimate. If variance is unknown, a pilot can estimate it, but a small pilot estimate is itself uncertain. Consider an upper plausible variance rather than treating the pilot value as exact.

Prespecified effect and analysis

The minimum meaningful effect should be fixed before the outcome data are examined. Changing it after seeing results turns planning into post hoc justification.

The same applies to exclusions, transformations, subgroup definitions, and test direction.

Correct outcome distribution

A binary conversion belongs in a proportion or binomial model. Revenue per account often has skew and extreme values. Time to conversion may include censoring. The formula must match the outcome and estimand.

No hidden multiplicity

Testing several outcomes, segments, treatment arms, or interim looks can increase the false-positive rate. The alpha used in a single-comparison calculator may not be the alpha available to each final test.

Fixed stopping rule

A fixed-horizon power calculation assumes the team collects the planned sample before making the confirmatory decision. Repeatedly checking ordinary p-values and stopping when one crosses 0.05 changes the operating error rate.

One-sided versus two-sided tests

Use a two-sided test when a material effect in either direction should be detected. This is the safer default for most product, marketing, and operational experiments because treatments can cause harm.

Use a one-sided test only when all of the following are true:

  • The direction is prespecified before data collection.
  • An effect in the opposite direction would be treated the same as no benefit for the stated hypothesis.
  • Stakeholders accept that the confirmatory claim is directional.
  • The choice is documented before anyone sees comparative results.

For the two-sample mean example with d = 0.50, alpha = 0.05, and 80% power, the normal approximation requires 63 per group for a two-sided test and 50 per group for a one-sided test.

The lower one-sided N can tempt a team facing a traffic shortfall. Traffic pressure is not a statistical reason for changing the hypothesis.

Common power analysis mistakes and their fixes

Optimistic effect-size selection

The team uses a prior campaign’s best observed lift rather than the smallest lift worth acting on.

Diagnostic: halve the assumed effect and recalculate. If N becomes operationally impossible, the original study depends heavily on optimism.

Fix: set the main effect from economics, then add optimistic and conservative sensitivity cases.

Ignoring the baseline rate or variance

A calculator receives the desired effect but no credible estimate of normal outcome variation.

Diagnostic: rerun the calculation across recent weekly baselines or plausible standard deviations. Large swings in N mean the nuisance parameter needs more work.

Fix: use comparable historical data, a pilot, or a justified range.

Confusing statistical power with significance

Power is a pre-study probability under a specified alternative. A p-value is calculated after observing data under a null model. An 80%-powered design does not guarantee a significant result.

Diagnostic: if the approval document says “80% confidence that the campaign will win,” the concepts have probably been mixed.

Fix: write power, alpha, effect, and decision rule as separate lines.

Choosing tails after seeing the data

The team starts with a two-sided plan and switches to one-sided because the result points in the expected direction.

Diagnostic: compare the timestamp of the analysis plan with the first comparative data review.

Fix: fix direction before launch and retain the original test for confirmatory reporting.

Ignoring unequal allocation

A calculator assumes equal groups while the actual routing sends most traffic to control or treatment.

Diagnostic: compare planned and observed group ratios before interpreting power.

Fix: enter the real allocation ratio and recalculate. If routing changes materially, document the change.

Forgetting attrition and invalid events

The formula gives analyzable N, but the project plan treats it as the initial recruitment target.

Diagnostic: inspect prior studies for consent loss, missing outcomes, bot filtering, duplicate prompts, and instrumentation failures.

Fix: divide required analyzable N by the expected retained fraction and round up by group.

Treating correlated rows as independent

Repeated users, accounts, devices, prompts, or locations are counted as separate independent observations.

Diagnostic: if one treatment assignment governs several rows, clustering is probably not being handled.

Fix: identify the randomization unit, estimate within-cluster correlation, and use cluster-aware planning and analysis.

A useful check: if reviewers cannot reconstruct N from the approval memo, assumption management is probably not happening.

A practical implementation plan

1. Run a short input workshop

Bring the decision owner, analyst, channel or product owner, and finance stakeholder into one session. Agree on the primary outcome, minimum meaningful effect, alpha, tails, power, allocation, and evidence source for the baseline or variance.

The output is a one-page assumption record, not a slide deck.

2. Produce a sensitivity sheet

Calculate at least the decision-threshold effect plus one smaller and one larger effect. Vary alpha or power where governance requirements are unsettled. Show analyzable and recruited N separately.

Do this before final budget approval. Sensitivity after launch can explain what happened, but it cannot restore a design that never had enough information.

3. Freeze the measurement contract

Document event definitions, observation windows, randomization unit, exclusions, group ratio, stopping rule, and analysis method. Give engineering a testable instrumentation specification rather than a metric name with several possible interpretations.

For AI visibility work, define prompt families, models, answer eligibility, citations, mentions, and recommendation criteria. The Targetlytics platform workflow can support collection and monitoring, while the experiment record remains the source for the causal design.

4. Review actual accumulation before interpretation

Track valid observations by group, allocation drift, missing outcomes, cluster counts, and event-definition changes. Do not wait until the final readout to discover that half the treatment events failed instrumentation.

Any unplanned change should enter a deviation log with its likely effect on interpretation.

Copyable preflight checklist

  • [ ] Primary outcome and observation window are fixed.
  • [ ] Minimum meaningful effect is stated in raw and relative units.
  • [ ] Baseline rate or variance has a dated source.
  • [ ] Alpha and desired power are recorded.
  • [ ] One-sided or two-sided choice is justified before launch.
  • [ ] Allocation ratio matches planned routing.
  • [ ] Randomization and analysis units are identified.
  • [ ] Clustering or repeated measures are handled.
  • [ ] Analyzable N is separated from recruited N.
  • [ ] Attrition, filtering, and missingness inflation are included.
  • [ ] Sensitivity cases are attached.
  • [ ] Formula, software, version, and rounding rule are saved.
  • [ ] Stopping rule and interim review policy are fixed.
  • [ ] Stakeholders have approved the decision threshold.

Questions teams ask during review

How do I pick an effect size when prior data is scarce?

Start with the smallest effect that changes the business or clinical decision. Then calculate sensitivity across plausible baselines and effects. Use a pilot to estimate variance, while accounting for uncertainty in a small pilot.

What if the variance is unknown?

Use comparable historical data or a pilot, and test an upper plausible standard deviation. For a final two-sample mean calculation, use software based on the noncentral t distribution rather than relying only on the normal approximation.

Is 80% power always enough?

No. Power reflects the tolerated false-negative risk for the specified effect. Use higher power when missing that effect carries serious cost, then assess whether the resulting N is feasible.

Should I use a one-sided test to reduce sample size?

Only when direction is prespecified and the opposite effect does not support the stated claim. Budget pressure or a favorable early trend does not justify changing a two-sided plan.

What happens with unequal groups?

Unequal allocation usually increases total N for the same power when variances and observation costs are similar. Enter the actual ratio in design-specific software and report required N separately for each group.

How do I adjust for dropout or invalid observations?

Divide analyzable N by the expected retained proportion. If you need 1,000 complete observations and expect 80% retention, recruit 1,250. Apply rounding at the group level.

Can I stop once the p-value is below 0.05?

Not under an ordinary fixed-horizon design. Early stopping based on repeated unadjusted tests changes error rates. Use a prespecified group-sequential or always-valid method if interim decisions are required.

Does a larger sample fix a biased design?

No. More observations reduce sampling error. They do not repair confounding, selection bias, broken randomization, outcome misclassification, or a baseline taken from the wrong population.

When should I consult a statistician?

Get statistical review for clustered, adaptive, noninferiority, equivalence, repeated-measure, survival, rare-event, multilevel, or heavily skewed designs, and whenever several outcomes or interim analyses affect alpha.

Why do two calculators give different sample sizes?

They may use different approximations, continuity corrections, variance assumptions, tail definitions, or rounding rules. Compare methods and inputs line by line, then choose and document the method before launch.

What changes in 2026

AI tools can now draft analysis plans, generate sensitivity grids, translate formulas into code, and point out missing inputs. That reduces the administrative burden around power analysis. It does not settle the commercial or scientific judgment behind the inputs.

The most useful change is operational: teams can turn a static calculator result into an interactive assumption record. Finance can change the acceptable effect, the analyst can update baseline uncertainty, and the project owner can see the resulting N and timeline before approval.

AI-driven enablement also raises a new risk. A fluent explanation can make an unsupported baseline or effect size sound settled. Require a source, owner, and date for each input. Generated arithmetic should be checked against a second package or independent implementation.

For AI brand visibility experiments, model updates and correlated prompt families make static sample assumptions especially fragile. Measurement systems need version records and repeated-measure controls alongside raw counts. A larger prompt log alone does not create stronger evidence.

The decision record is the real output

A power calculation can tell you how many analyzable observations a stated design requires. It cannot decide which effect matters, prove that observations are independent, repair a poor outcome definition, or turn expected pipeline into realized revenue.

The practical deliverable is a traceable decision record: assumptions, formulas, sensitivity cases, recruitment inflation, and the action tied to the minimum effect. Once that record exists, the final N stops being an analyst’s unexplained number and becomes a choice stakeholders can approve with open eyes.

Kari Jääskeläinen is Co-founder of Targetlytics and a Growth and GTM Strategist. He has worked across 11 startups over three decades, helping teams replace founder-led improvisation with disciplined market execution.

If your next experiment concerns AI recommendations, citations, or brand visibility, start with a free Targetlytics audit and book a call to review the measurement gap. You can also start for free; paid plans include a 14-day trial.