calcy treasure chest of featuresLove the calculators but not the ads?

Take a sneak peek at the Ad-Free Design being enjoyed by hundreds of members for less than 25¢ a week. Full details and a bonus!

Slope Calculator to Find Slope and Y-Intercept of a Straight Line

Calculator Preferences
Slope Calculator Sign
Slope Calculator

This calculator will find the slope, y-intercept, and angle of a straight line from two entered points. Plus, the calculator will also find the distance between the two points, and formulate the line equation from the points and slope. The calculator will also attempt to plot the two points on a graph and draw the line that runs through them. The Learn tab includes:

  • How to calculate slope from two points.
  • How to formulate a line's equation.
Learn More

Selected Data Record:

A Data Record is a set of calculator entries that are stored in your web browser's Local Storage. If a Data Record is currently selected in the "Data" tab, this line will list the name you gave to that data record. If no data record is selected, or you have no entries stored for this calculator, the line will display "None".

DataData recordData recordSelected data record: None
Point 1:Point 1 (X1,Y1):Point 1 (X1,Y1):Point 1 (X1,Y1):
X1:
-
/
X1 decimal:
Y1:
-
/
Y1 decimal:

Point 1 (X1,Y1):

Enter the X and Y values of the first point. The values can be in the form of a decimal or a whole number.

If you need to convert mixed numbers and fractions to decimals, expand the description to reveal a mini fraction-to-decimal calculator. Enter the whole number (if none, leave blank), the numerator, and the denominator and calculator will make the conversion and enter the decimal into the corresponding calculator field.

Point 2:Point 2 (X2,Y2):Point 2 (X2,Y2):Point 2 (X2,Y2):
X2:
-
/
X2 decimal:
Y2:
-
/
Y2 decimal:

Point 2 (X2,Y2):

Enter the X and Y values of the second point. The values can be in the form of a decimal or a whole number.

If you need to convert mixed numbers and fractions to decimals, expand the description to reveal a mini fraction-to-decimal calculator. Enter the whole number (if none, leave blank), the numerator, and the denominator and calculator will make the conversion and enter the decimal into the corresponding calculator field.

Δ X:Change in X:Change in X (X2 - X1):Change in X (X2 - X1):

Change in X (Δ X):

This is the difference or change between X2 and X1 and is often referred to as the run. If X2 is to the left of X1, the run will be a negative number. If X2 is to the right of X1, the run will be a positive number.

Δ Y:Change in Y:Change in Y (Y2 - Y1):Change in Y (Y2 - Y1):

Change in Y (Δ Y):

This is the difference or change between Y2 and Y1 and is often referred to as the rise. If Y2 is below Y1, the rise will be a negative number. If Y2 is above Y1, the rise will be a positive number.

Slope m:Slope m:Slope m:Slope m:

Slope m:

This is the rise (Δ Y) divided by the run (Δ X). If the slope is positive, it means the line is going up from left to right. If the slope is negative it means the line is going down from right to left. The higher the absolute value of the slope, the steeper the line.

Angle θ:Angle θ:Angle θ:Angle θ:

Angle θ:

This is the angle the line forms with the X axis, which is based on the arc tangent of the slope.

Distance d:Distance d:Distance dDistance d:

Distance d:

This is the distance between the entered points. For a vertical line the distance is the absolute value of the change in Y. For a horizontal line the distance is the absolute value of the change in X. For all other lines, distance is calculated using the distance formula (pythagorean theorem to calculate the length of side of a triangle, a.k.a, the hypotenuse).

Y-intercept b:Y-intercept b:Y-intercept b:Y-intercept b:

Y-intercept b:

This is the point at which the line crosses the Y axis, which is calculated by multiplying the slope by the result of -1 x X1.

Equation:Line equation:Equation y = mx - b:Equation y = mx - b:

Equation y = mx - b:

This is the calculated equation of the straight line that passes through the entered points. m stands for slope and b stands for Y-intercept.

If you would like to save the current entries to the secure database, tap or click on the Data tab, select "New Data Record", give the data record a name, then tap or click the Save button. To save changes to previously saved entries, simply tap the Save button. Please select and "Clear" any data records you no longer need.

Feedback AppreciatedFeedback Greatly AppreciatedYour Feedback Would Be Greatly AppreciatedYour Feedback Is Greatly Appreciated
Heading

Tip

Help and Tools

Help and Tools:

This section, which you can Unstick or Hide in the Calculator Preferences (just above the top of the calculator), contains the following tabs (content too long to fit within bordered frame can be scrolled up and down):

About: Click this tab for an introduction to the calculator.

Instructions: Click this tab for step-by-step instructions for using the calculator.

Terms: Click this tab for a list of the descriptions that are located within each popup help button (info icons).

PCalc: Click this tab for a handy "pocket" calculator you can use when you need to calculate an entry needed for the calculator.

Data: Click this tab to save a set of entries or a note in between visits. Entries and notes will be stored to your web browser's local storage (if supported by your browser of choice), meaning they can only be recalled with the same device and web browser you were using when you saved them. If you'd like to save entries and notes between devices you can do so by subscribing to the Ad-Free Member Version.

 

Favorites

Add or remove this page to/from my favorites.

Adjust Calculator Width:

Move the slider to left and right to adjust the calculator width. Note that the Help and Tools panel will be hidden when the calculator is too wide to fit both on the screen. Moving the slider to the left will bring the instructions and tools panel back into view.

Also note that some calculators will reformat to accommodate the screen size as you make the calculator wider or narrower. If the calculator is narrow, columns of entry rows will be converted to a vertical entry form, whereas a wider calculator will display columns of entry rows, and the entry fields will be smaller in size ... since they will not need to be "thumb friendly".

Show/Hide Popup Keypads:

Select Show or Hide to show or hide the popup keypad icons located next to numeric entry fields. These are generally only needed for mobile devices that don't have decimal points in their numeric keypads. So if you are on a desktop, you may find the calculator to be more user-friendly and less cluttered without them.

Stick/Unstick Tools:

Select Stick or Unstick to stick or unstick the help and tools panel. Selecting "Stick" will keep the panel in view while scrolling the calculator vertically. If you find that annoying, select "Unstick" to keep the panel in a stationary position.

If the tools panel becomes "Unstuck" on its own, try clicking "Unstick" and then "Stick" to re-stick the panel.