SSR SST SSE Calculator

This SSR SST SSE calculator splits the variation in y into explained and unexplained parts, and gives R².

Checks on your data

  • For a least squares line with an intercept, SSR + SSE equals SST exactly.
  • R² = SSR ÷ SST = 1 − SSE ÷ SST. A high R² means the model explains much of the variation in y.

Results

SST (total sum of squares)
165.195
SSR (regression sum of squares)
164.419
SSE (error sum of squares)
0.775714
R² = 1 − SSE/SST
0.995304
SSR / SST
0.995304
Check: SSR + SSE
165.195
Mean of y
9.075
n
8
Sums of squares
050100150SST: 165.195SST165SSR: 164.419SSR164SSE: 0.775714SSE0.776
Calculation table
yŷ(y − ȳ)²(y − ŷ)²(ŷ − ȳ)²
2.32.1545.9010.022547.956
4.14.128624.7510.0008163324.467
5.86.107110.7260.0943378.8082
8.48.08570.455620.0987760.97869
9.710.0640.390630.13270.97869
12.512.04311.7310.208988.8082
13.614.02120.4760.177624.467
16.21650.7660.0447.956
Show step-by-step solution
  1. Predictions are fitted by least squares: ŷ = 0.17143 + 1.9786x. ȳ = 9.075.
  2. SST = Σ(y − ȳ)² = 165.195.
  3. SSE = Σ(y − ŷ)² = 0.775714.
  4. SSR = Σ(ŷ − ȳ)² = 164.419.
  5. R² = 1 − SSE ÷ SST = 0.995304.
SSTΣ(y − ȳ)²
SSRΣ(ŷ − ȳ)²
SSEΣ(y − ŷ)²

What Is SSR SST SSE?

SST is the total sum of squares, how far the y values are from their mean. SSE is the error sum of squares, how far they are from the fitted line. SSR is the regression sum of squares, how far the fitted values are from the mean.

For a least squares line with an intercept, SST = SSR + SSE exactly. R² is then SSR divided by SST, the share of the variation the line explains.

Paste x and y and the calculator fits the line for you, or enter your own observed and predicted values.

How to Use the SSR SST SSE Calculator

  1. Choose whether to fit a line or supply predictions.
  2. Enter the values.
  3. Read the three sums of squares and R².

SSR SST SSE Formula

Decomposition

SST=SSR+SSESST=SSR+SSE

R squared

R2=SSRSST=1−SSESSTR^2=\frac{SSR}{SST}=1-\frac{SSE}{SST}

SSR SST SSE Variables Explained

SymbolMeaningNotes
SSTTotal sum of squaresΣ(y − ȳ)²
SSRRegression sum of squaresΣ(ŷ − ȳ)²
SSEError sum of squaresΣ(y − ŷ)²
R²Coefficient of determinationSSR / SST

SSR SST SSE Worked Example

With the example values loaded in the calculator above, the steps are:

  1. Predictions are fitted by least squares: ŷ = 0.17143 + 1.9786x. ȳ = 9.075.
  2. SST = Σ(y − ȳ)² = 165.195.
  3. SSE = Σ(y − ŷ)² = 0.775714.
  4. SSR = Σ(ŷ − ȳ)² = 164.419.
  5. R² = 1 − SSE ÷ SST = 0.995304.

Result: SST (total sum of squares) = 165.195; SSR (regression sum of squares) = 164.419; SSE (error sum of squares) = 0.775714.

What each one means

SST measures how far the y values are from their mean. SSE measures how far they are from the fitted line. SSR measures how far the fitted values are from the mean.

A good model has a small SSE and a large SSR, so R² is near 1.

A note on abbreviations

Some books call SSR the "sum of squares of residuals" and SSE the "explained sum of squares". Here SSR is the regression (explained) part and SSE is the error part, which is the more common convention in regression software.

Where SSR SST SSE Is Used

Regression coursework

Fill in an ANOVA table for a regression.

Judging model fit

See how much variation a model explains.

Checking predictions

Compute SSE and R² for predictions from any model.

Common SSR SST SSE Mistakes to Avoid

  • Check which convention your course uses for SSR and SSE.
  • R² always rises when you add predictors, so compare models with adjusted R².

SSR SST SSE Terms and Definitions

SST
Total sum of squares around the mean of y.
SSE
Sum of squared errors, the unexplained part.

SSR SST SSE FAQs

What is the relationship between SST, SSR and SSE?

SST = SSR + SSE for a least squares line with an intercept.

How do you get R² from these?

R² = SSR ÷ SST, or 1 − SSE ÷ SST.

What does a large SSE mean?

The model leaves a lot of variation unexplained.

Can SSR be larger than SST?

Not for a least squares line. It can happen with predictions that did not come from a fit.

Related calculators

Last updated 2026-11-09. See our disclaimer.