詳しい使い方

傾き計算機の使い方ガイド

2点の座標から、垂直変化量(rise)・水平変化量(run)・直線の傾き・切片・2点間の距離・直線の方程式を求める仕組みを解説するガイドです。

計算機を開く

詳しい使い方

What This Calculator Does

This slope calculator analyzes the line passing through two points in a coordinate plane. It returns rise, run, slope, y-intercept when available, the point-to-point distance, and a readable line equation.

When to Use It

  • You want the slope between two points.
  • You need to check whether a line is increasing, decreasing, or vertical.
  • You want the line equation in a quick numeric form.
  • You need both slope and point-to-point distance in one place.

Inputs Explained

Enter two different points:

  • first point: x1, y1
  • second point: x2, y2

These values define one line in 2D space.

How the Calculation Works

The page computes:

  • rise = y2 - y1
  • run = x2 - x1
  • slope = rise / run when run is not zero
  • distance = sqrt(run² + rise²)

If the line is not vertical, the page also calculates the y-intercept and writes the line in slope-intercept form. If run = 0, the line is vertical and the result becomes x = constant.

Example

For points (1, 2) and (4, 8):

  • rise = 6
  • run = 3
  • slope = 2

The line is not vertical, so the page also derives the intercept and equation.

How to Understand the Result

  • positive slope means the line rises from left to right
  • negative slope means the line falls from left to right
  • zero slope means a horizontal line
  • undefined slope means a vertical line

Common Mistakes

  • Entering the same point twice.
  • Expecting a y-intercept for a vertical line.
  • Mixing up rise and run order after entering points.

FAQ

Why is the slope undefined sometimes?

That happens when x1 = x2, so the run is zero and division by zero is not defined.

Is the displayed distance the same as horizontal or vertical difference?

No. It is the Euclidean distance, not just dx or dy.

Does point order matter?

It changes the sign of rise and run together, but the final slope remains the same.

Notes

This tool is useful for coordinate geometry, graphing practice, and quick line analysis. For midpoint-specific work, use the distance and midpoint calculator alongside it.

よくある質問

垂直な直線の場合はどうなりますか?

傾きは定義されず、ページは傾き切片形の代わりに x = 定数 の形式で直線を表示します。

2つの点が同じでもよいですか?

いいえ。同一の点では直線が一意に定まりません。

距離も表示されますか?

はい。ページは2点間の直線距離も表示します。

小数の座標は使えますか?

はい。現在のページは通常の小数座標に対応しています。