Statistics

How to Calculate Linear Regression on a TI-84

Math Experts
October 15, 2026

Finding the line of best fit for a scatter plot is a fundamental task in statistics, biology, and chemistry classes. The TI-84 processes linear regression (matching data to the formula $y = ax + b$) rapidly. However, there is a hidden setting you must enable first to get full credit on your homework.

Step 1: Turn on Diagnostics (Crucial First Step)

By default, the TI-84 hides the correlation coefficient ($r$) and the coefficient of determination ($r^2$). To see how "strong" your line of best fit is, you MUST turn on diagnostics.

  1. Press 2nd then 0 to open the CATALOG.
  2. This is an alphabetical list of every command. Press the x⁻¹ key (which has the green letter 'D' above it) to jump straight to the D section.
  3. Scroll down until the arrow points to DiagnosticOn.
  4. Press ENTER twice. The screen should say "Done".

Step 2: Enter Your Data Points

Now we need to input the X and Y coordinates of your scatter plot.

  1. Press STAT and select 1: Edit...
  2. Enter your Independent variables (X values) into the L1 column.
  3. Enter your Dependent variables (Y values) into the L2 column. Ensure both columns have the exact same number of entries!

Step 3: Calculate the Regression

  1. Press STAT.
  2. Press the right arrow to open the CALC menu tab.
  3. Select 4: LinReg(ax+b).
  4. A menu will appear. Confirm that Xlist is set to L1 and Ylist is set to L2.
  5. Pro-tip: If you want the calculator to automatically copy the final equation into your graphing menu, scroll down to Store RegEQ:, press ALPHA + TRACE (F4), and select Y1.
  6. Scroll down to Calculate and press ENTER.

The screen will display your slope ($a$), your y-intercept ($b$), and because you turned diagnostics on, the $r$ and $r^2$ values indicating the strength of the correlation.

Linear Regression Example on a TI-84

For example, enter these values into your calculator: X values in L1 and Y values in L2.

X (L1) Y (L2)
13
25
37
49

After running LinReg(ax+b), the calculator returns the equation y = 2x + 1 for this dataset.

  • Slope (a) = 2: Y increases by 2 whenever X increases by 1.
  • Y-intercept (b) = 1: The line crosses the Y-axis at 1.
  • r = 1: These points have a perfect positive linear relationship.
  • r² = 1: The line explains 100% of the variation in these example Y-values.

To practice, enter the four pairs into L1 and L2, then follow Step 3 above to calculate the regression.

Need to practice this?

Try our free online graphing calculator. No download or installation required.

Open Free TI-84 Emulator