Statistics & Probability
Two-Sample Variance Ratio F Test Calculator
Compare two sample variances using an F ratio and a two-sided equal-variance test.
How the calculation works
ratio = (sd_a/sd_b)**2. lower = beta_i((n_a-1)/2,(n_b-1)/2,(n_a-1)*ratio/((n_a-1)*ratio+n_b-1)). upper = beta_i((n_b-1)/2,(n_a-1)/2,(n_b-1)/((n_a-1)*ratio+n_b-1)). Variance ratio A/B = ratio . Numerator degrees of freedom = n_a-1 . Denominator degrees of freedom = n_b-1 . Lower-tail F probability = lower . Upper-tail F probability = upper . Two-sided equal-variance p-value = min(1,2*min(lower,upper)) .
Worked example
Example inputs — Sample A standard deviation: 2; Sample A size: 10; Sample B standard deviation: 2; Sample B size: 10. Expected results — Variance ratio A/B: 1; Numerator degrees of freedom: 9; Denominator degrees of freedom: 9; Lower-tail F probability: 0.5; Upper-tail F probability: 0.5; Two-sided equal-variance p-value: 1.
Assumptions and limits
Independent normally distributed samples are assumed; the classical F test is sensitive to departures from normality. Standard deviations must be positive sample estimates. The two-sided p-value doubles the smaller tail probability and is not a test of equality of means. No multiple-testing adjustment or variance-ratio confidence interval is supplied.
Reference and further reading
Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.
Related calculators
- Sample & Population Variance Calculator
- Quartiles, IQR & Tukey Fences Calculator
- Adjusted Skewness & Excess Kurtosis Calculator
- Z-Score & Normal Percentile Calculator
- Normal Interval Probability & Quantile Calculator
Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.