Two-Way ANOVA Calculator

Two factors, many groups, one clear answer. Enter data, set levels, and view ANOVA tables. Download results to share, validate, and archive your work.

Calculator
Enter your data
Format: FactorA,FactorB,Value
Common choices: 0.05, 0.01.
Header allowed: FactorA,FactorB,Value.
Downloads use the same data you submit.
Tip: You can paste from spreadsheets. Use one observation per line.
Example
Sample dataset preview
Factor AFactor BValue
A1B112
A1B111
A1B218
A1B220
A2B19
A2B110
A2B215
A2B214
A3B113
A3B112
A3B222
A3B221
Copy the same rows into the textarea to test the calculator.
Formulas used
Two-way ANOVA with interaction

Grand mean

ȳ··· = (1/N) Σ yijk

Cell mean

ȳij· = (1/nij) Σ yijk

Error (within) sum of squares

SSE = Σ Σ Σ (yijk − ȳij·

Main effects (weighted)

SSA = Σ ni·· − ȳ···)²
SSB = Σ n·j·j· − ȳ···)²

Interaction (weighted)

SSAB = Σ Σ nijij· − ȳi·· − ȳ·j· + ȳ···)²

Test statistics

F = MS / MSE,   MS = SS/df
p-values come from the F distribution using the incomplete beta function.
How to use
Step-by-step
  1. Collect observations grouped by two factors (A and B).
  2. Create rows as FactorA,FactorB,Value.
  3. Paste rows or upload a CSV file.
  4. Set α and press Submit.
  5. Review main effects and interaction p-values.
  6. Download CSV/PDF for reporting and documentation.
FAQs
Common questions

1) What does a two-way ANOVA test?

It tests whether Factor A, Factor B, or their interaction changes the mean outcome. Interaction means the effect of one factor depends on the level of the other factor.

2) Do I need the same sample size in each cell?

Balanced data is ideal, but not required here. The calculator uses weighted sums of squares when cell sizes differ. Strong imbalance can make interpretation less stable.

3) Why does it say I need replication?

To estimate the error term, you need repeats inside at least some A×B cells. If every cell has only one value, the error degrees of freedom become zero.

4) How do I interpret the interaction p-value?

If interaction is significant, interpret cell or simple effects rather than only main effects. Plotting cell means often helps you see how Factor A and Factor B combine.

5) What assumptions should I check?

Independence, roughly normal residuals, and similar variances across cells. ANOVA is fairly robust to mild non-normality, but strong heteroscedasticity can affect results.

6) What if a cell is missing entirely?

Missing cells break the full factorial structure and the model becomes harder to interpret. Add data for missing combinations, or consider a different model that fits your design.

7) Can I use this for repeated-measures designs?

Not directly. Repeated measures need subject-level correlation handling and different error terms. Use a repeated-measures ANOVA or mixed-effects model for within-subject factors.

Built for clean reporting and practical analysis workflows.

Related Calculators

one way anova calculatoranova effect sizeanova model fitanova residual analysisfactorial anova calculatorhierarchical anovaunbalanced anova calculatoranova confidence intervalsnested anova calculatorpost hoc anova calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.