Slope Formula – TI-84 Evo Math Program

Slope Formula program on a TI-84 Evo

Type the coordinates of two points and this program gives you the slope of the line through them, along with its equation in y=mx+b form.

Send it to your calculator

Plug the calculator into your computer with a USB cable, then use the button below. If something is not working, see troubleshooting.

Checking your browser…

Download .8xp2

Open it on the calculator

  1. Press the prgm key. The PROGRAMMING menu opens.
    The prgm key highlighted on the TI-84 Evo keyboard
    TI-84 Evo PROGRAMMING menu with 1: TI-Basic highlighted
  2. Press enter to select TI-Basic. The list of TI-Basic programs opens.
    TI-84 Evo TI-Basic program list showing 1: SLOPE
  3. Press enter on SLOPE in the program list, which puts prgmSLOPE on the home screen.
  4. Press enter to run it. The program asks for four numbers one at a time: the x and y of your first point, then the x and y of your second point.
    Slope Formula program on the TI-84 Evo asking for the x1 coordinate

Find the slope and the equation

  1. Type each coordinate and press enter after it, using the (-) key for a negative. For the points (1, 2) and (3, 8), the moment you enter the last number it answers Slope=3 and y=3x-1.
    Slope Formula program on the TI-84 Evo showing Slope=3 and y=3x-1 for the points 1, 2 and 3, 8

Good to know

  • It's the slope formula, worked out for you. The program computes (y₂ − y₁) / (x₂ − x₁) for the slope, then works back to the y-intercept so it can write the whole equation. If you want the straight-line distance between the same two points instead, the Distance Formula program takes the same four coordinates.
  • Vertical lines get caught. When both x-coordinates match there is no slope to compute, so the program answers "Undefined (vertical)" instead of dropping you on an error screen.
    Slope Formula program on the TI-84 Evo answering Undefined (vertical) when both x-coordinates are the same
  • The equation comes out tidy. A horizontal line gives y=3 rather than y=0x+3, and a line through the origin gives y=3x rather than y=3x+0.
  • Answers that aren't whole come out as decimals. The points (1, 1) and (4, 3) give Slope=0.6666666667 and y=0.6666666667x+0.3333333333, not the exact thirds.
  • Negative coordinates work. Type them with the (-) key, not the subtraction key. Points (2, 7) and (5, 1) give Slope=-2 and y=-2x+11.
  • Rerun it with one keypress. Pressing enter on the home screen repeats whatever you ran last, so right after a run a single enter starts a fresh set of prompts.

More TI-84 Evo Math Programs

← All TI-84 Evo math programs