Covariance Calculator
Enter two datasets and instantly compute their covariance — population or sample — with a full step-by-step breakdown.
Dataset Inputs
Comma-separated numbers
Must have the same count as X
Enter two datasets and click Calculate
Results and step-by-step working will appear here
Sample Covariance
—
Mean X
—
Mean Y
—
N (pairs)
—
Formula Used
Step-by-Step Breakdown
| i | xᵢ | yᵢ | (xᵢ − x̄) | (yᵢ − ȳ) | (xᵢ−x̄)(yᵢ−ȳ) |
|---|
Summary
Enter two datasets and instantly compute their covariance — population or sample — with a full step-by-step breakdown.
How it works
- Enter your first dataset (X values) as comma-separated numbers.
- Enter your second dataset (Y values) — it must have the same count as X.
- Choose Population covariance (divide by N) or Sample covariance (divide by N−1).
- Click Calculate to see the result and a detailed step-by-step breakdown.
- Optionally load an example dataset to see how the tool works.
Use cases
- Determine whether two financial assets move together for portfolio analysis.
- Verify hand-calculated covariance for statistics homework or exams.
- Explore linear relationships between two variables before computing correlation.
- Understand the direction and magnitude of co-movement in experimental data.
- Compare population vs. sample covariance for the same dataset.
- Teach or learn the covariance formula with a live worked example.
Frequently Asked Questions
Last updated: 2026-06-10 ·
Reviewed by Nham Vu