MATH · FREE TOOL

Slope calculator

Find the slope, rise, run, intercept and direction of a line through two points.

On-device processing · No account · No ads

Files and entered values are processed in your browser, without uploading them to Toolfred. Our tools do not automatically save your work or send it to embedded analytics.

Pages, libraries and shared reference files still download from our host. Downloads you save, browser recovery and hosting logs have separate retention. Local processing is not a guarantee of anonymity or secure deletion.

See where data goes →

Your inputs

Local calculator controls

Preparing the local calculator. If controls stay inactive, reload this page.

Use the active fields and the stated conventions. Exact integer/fraction tools retain exact values; floating-point results are rounded for display. Calculations stay on this device.

YOUR RESULT

Your slope result

Enter the active inputs, then choose Calculate. The method and limits are explained below.

How this calculation works

Slope=(y₂−y₁)/(x₂−x₁). Vertical lines have an undefined finite slope and no y-intercept; identical points do not define a unique line. Direction uses atan2 from −180° to 180°. Coordinates are decimal numbers within±1e12. Near-coincident floating-point points can be sensitive to rounding.

Reference: method and limitations. Method reviewed October 23, 2026.

Check the assumptions

Use the stated units and conventions. This tool supports the workflow described here; it does not infer missing information or outside rules.