Slope and Line Calculator

Find a line’s slope and y-intercept from two Cartesian points. Check the horizontal and vertical differences used in the calculation.

  • Free
  • No sign-up
  • Runs in your browser

Your numbers stay in your browser. Nothing is uploaded or saved.

Result

Slope m–

Enter the required values to see your result. Use the example to try the complete calculation.

Vertical lines have no finite slope and are reported explicitly. Identical points do not determine a unique line. Coordinates are Cartesian, not map locations.

Powered by VISU

How this calculation works

Slope and Line Calculator

Find a line’s slope and y-intercept from two Cartesian points. Check the horizontal and vertical differences used in the calculation.

Units and limits

Vertical lines have no finite slope and are reported explicitly. Identical points do not determine a unique line. Coordinates are Cartesian, not map locations.

Formulas

Calculation
m = (y2 − y1)/(x2 − x1); b = y1 − m × x1

Give your project a place to be found

Use VISU Link to bring your project links together on one page. This calculator remains free and works without an account.

Discover VISU Link

How to use it

  1. Choose the operation when available and enter your own values in the labelled fields.
  2. Check the units and the limits explained below before interpreting the answer.
  3. Read the result and its details. Copy it or download a result card; no account is required.

Examples

  • Worked example

    Points (1,2) and (4,8) give slope 2 and intercept 0.

  • Another case

    Points (0,5) and (2,5) form a horizontal line with slope 0.

Add this tool to your site

Put this tool on your blog, store or club site. It runs inside your page, free, with no account, and a small "by VISU" credit line under it.

Questions

What does this tool calculate?

Find a line’s slope and y-intercept from two Cartesian points. Check the horizontal and vertical differences used in the calculation.

Which inputs and units should I use?

Vertical lines have no finite slope and are reported explicitly. Identical points do not determine a unique line. Coordinates are Cartesian, not map locations.

Can I check a worked example?

Points (1,2) and (4,8) give slope 2 and intercept 0.

Are my input values uploaded or stored?

No. The calculation runs in this browser. Typed values are not sent to analytics, placed in the page URL or saved by the calculator. Copying or downloading is an action you choose.

Do I need an account or a paid plan?

No. The calculation, example, result copy and result card are available without registration. VISU services are an optional next step.

Add this tool to your site

Free for you and your visitors. Pick a size, copy the code and paste it into any page of your site.

Width
Frame
Credit line
  1. Copy the code.
  2. In your site editor, add an HTML or "custom code" block where the tool should appear.
  3. Paste the code and publish. The height adjusts by itself.

The credit line under the tool links to the original page. Keep it if the tool is useful to you.

Preview

Slope and Line Calculator by VISU