Skip to content
LoveToCalc

Definition — what does that mean?

Angle of a line

The slope and the angle are the same information. Take the inverse tangent of the slope to get the angle, and the tangent of the angle to get the slope.

In Swedish: Linjens vinkel mot x-axeln

Angle of a line

The relation

tan(θ)=m

The angle a line makes with the positive x-axis is the angle whose tangent is the slope: tan θ = m. A slope of 1 is 45°, a slope of 2 is about 63.4°.

Solve for
Solved for θ

θ=arctan(m)

Show how the formula is rearranged
  1. tan(θ)=m
  2. Take arctan of both sides, which undoes the arctan and leaves the angle on its own.

    θ=arctan(m)

θ≈63.4349

θ equals the arctangent of (2), is approximately 63.4349 degrees

Working2 steps

Practice questions

You are given

  • θ=40

Round to 2 decimals.

The formula

θ is the angle between the line and the positive x-axis, and m is the slope. Walk 1 step to the right along a line with slope m and you rise m; the right-angled triangle that makes has opposite side m and adjacent side 1, so the tangent of the angle is m / 1 = m.

Swedish books write tan v = k, with v for the angle and k for the slope.

The angle of y = 2x + 1. θ = tan⁻¹(2) ≈ 63.43°. The intercept plays no part — every line with slope 2 makes the same angle.

The other way: a road climbs at 5°. What is its slope? m = tan 5° ≈ 0.087, a gradient of 8.7%.

A falling line: two right answers

The angle of y = −x + 4. The calculator gives tan⁻¹(−1) = −45°. A textbook that measures every angle counter-clockwise from the positive x-axis says 135°. Both describe the same line: −45° + 180° = 135°.

Slope m Calculator, tan⁻¹ m Counter-clockwise from the x-axis
2 63.43° 63.43°
1 45° 45°
0 0° 0°
−1 −45° 135°
−2 −63.43° 116.57°

Neither number is wrong. What is wrong is marking one of them wrong — check which convention the task uses, and add 180° to the calculator’s answer when it asks for the counter-clockwise angle.

The line with no slope

A vertical line makes 90° with the x-axis, and tan 90° does not exist. A vertical line also has no slope, because there is no run to divide by.

Where next

Common mistakes

Common questions

How do I find the angle between two lines? Find each line’s angle with the x-axis and subtract. For y = 2x and y = 0.5x: 63.43° − 26.57° = 36.87°. If the difference is over 90°, the acute angle, 180° minus the difference, is usually the one given.

What slope does a 45° line have? Exactly 1, since tan 45° = 1. It rises as much as it runs.

Is a slope of 100% a 100° angle? No. A gradient of 100% is a slope of 1, which is 45°. Percent gradient and angle grow at different rates.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
mtan(θ)tan(63.43°)2
θarctan(m)arctan(2)63.43

Last reviewed October 6, 2026 ·How pages are reviewed

Straight linesAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.