Skip to content
CalculatorZilo Logo
  • Home
  • CalculatorsExpand
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
CalculatorZilo Logo
Home / Construction Calculators / Distance Angle Calculator
Geometry Calculators

Distance Angle Calculator

Published onJune 20, 2025 Updated onOctober 21, 2026 5:50 am

When you know a line-of-sight distance and the angle it makes with the ground, two right-triangle formulas split it into its horizontal range and its height difference: horizontal = distance x cos(angle) and height = distance x sin(angle). Surveyors, engineers, drone operators, and archers use that split every day.

This calculator solves the same triangle in all three directions. Give it the slant distance and angle, the horizontal distance and angle, or the horizontal distance and height, and it returns the missing sides and the angle in both degrees and radians.

Distance Angle Calculator
Split a sight line into horizontal range and height, or solve for the angle
Height difference
Angle in radians
Height difference
Angle in radians
Angle in radians
Line-of-sight (slant) distance

Use one unit throughout (feet, meters, yards) and every result comes back in that unit. Angles are entered in degrees; the radians value is shown in every result for reference.

Quick Answer

Quick answer: A line-of-sight distance of 100 at an angle of 30 degrees splits into a horizontal distance of 86.6025 and a height difference of 50.0000 (0.5236 rad). Working the other way, a horizontal distance of 290 ft with a height of 134 ft gives an angle of 24.8002 degrees and a slant distance of 319.4620 ft. Each tab above is pre-filled with one of these cases.

Key takeaways

  • One right triangle powers all three modes: the slant distance is the hypotenuse, the horizontal range is the adjacent side, and the height difference is the opposite side.
  • Positive angles look up (elevation), negative angles look down (depression), and a negative angle returns a negative height difference. Nothing extra to configure.
  • Every result shows the angle in radians as well as degrees, which most single-purpose angle tools leave out.
  • Mode 2 refuses the impossible case instead of printing infinity: at exactly 90 degrees the sight line is vertical, so no slant distance exists for a horizontal input.
On this page
  • Quick Answer
  • One triangle, three directions: choosing a mode
  • The distance-angle formulas, explained
  • Worked examples for all three modes
  • Distance angle or distance calculator: which job is yours?
  • Elevation, depression, and the signs that carry them
  • What competing calculators miss
  • Frequently Asked Questions
  • Add This Calculator to Your Website
  • References

One triangle, three directions: choosing a mode

Choose by what you actually measured. Each mode asks for the two values that kind of measurement gives you.

1

Slant + angle fits a rangefinder reading. A laser rangefinder reports the direct line-of-sight distance; add the angle from a clinometer or phone inclinometer and this mode returns the true horizontal range and the height difference. This is the archery and golf correction: the ranged distance is never the distance gravity acts over.

2

Horizontal + angle fits map and layout work. Your map, GPS, or tape gives the ground distance, and the angle gives you the slant distance you would actually travel or cable, plus the height difference.

3

Horizontal + height fits known legs. Building height from plans, ground distance from a measuring wheel, and this mode returns the sight angle and the slant distance, the classic angle of elevation problem.

The distance-angle formulas, explained

Every mode is the same right triangle read from a different side. Name the parts once and all three formula sets follow.

You Horizontal 86.6025 Height 50.0000 Slant (line of sight) 100 30 degrees Target

The worked example drawn to its proportions: a slant of 100 at 30 degrees, split into 86.6025 across and 50.0000 up.

The formulas: Mode 1: horizontal = slant x cos(angle); height = slant x sin(angle). Mode 2: slant = horizontal / cos(angle); height = horizontal x tan(angle). Mode 3: angle = arctan(height / horizontal), computed with atan2 so signs survive; slant = square root of (horizontal squared + height squared). Angles convert as radians = degrees x pi / 180.

These are the standard right-triangle ratios, sine as opposite over hypotenuse and cosine as adjacent over hypotenuse, as set out in OpenStax Algebra and Trigonometry, Section 7.2 on right triangle trigonometry. Mode 3 uses the two-argument arctangent (atan2) rather than a plain arctan of the ratio, for one practical reason: atan2 keeps track of signs separately, so a target below you (negative height) returns a negative angle instead of losing the direction. If you need the cosine ratio on its own, without the triangle around it, the cosine calculator isolates exactly that number.

A built-in self-check ties the modes together: feed Mode 1's outputs back as Mode 3's inputs and you must recover your starting angle and slant. For the worked example, the square root of (86.6025 squared + 50 squared) is exactly 100, the slant you started with. If a hand calculation fails that check, the error is in the hand calculation, not the triangle.

Worked examples for all three modes

Each tab is pre-filled with its example, and every figure below is what that tab returns, to the four decimals the calculator shows.

ModeInputsResults
1. Slant + angle (drone or rangefinder)Slant 100, angle 30 degreesHorizontal 86.6025; height 50.0000; angle 0.5236 rad
2. Horizontal + angle (map distance)Horizontal 70, angle 30 degreesSlant 80.8290; height 40.4145; angle 0.5236 rad
3. Horizontal + height (angle of elevation)Horizontal 290 ft, height 134 ftAngle 24.8002 degrees; 0.4328 rad; slant 319.4620 ft
86.6025
Horizontal from 100 at 30 degrees
50.0000
Height from 100 at 30 degrees
24.8002 degrees
Angle from 290 across, 134 up
319.4620 ft
Slant for that same shot
Slant distance
100
Horizontal part
86.6025
Height part
50.0000

How the Mode 1 slant of 100 divides at 30 degrees. The steeper the angle, the more of the slant moves from the horizontal bar into the height bar; at 45 degrees the two parts are equal.

Mode 3's example is the textbook angle of elevation case, and it is a good accuracy check: 134 over 290 gives the same 24.8 degree answer (24.8002 here, with the slant and radians the textbook versions usually leave out). Note what the split means physically in Mode 1: of a 100-unit sight line at 30 degrees, only 86.6025 units carry you forward. The other 13.4 units of reach were spent on climbing, which is exactly why ranged distances overstate flat-ground distance on any slope.

Distance angle or distance calculator: which job is yours?

The names sound alike, so here is the honest split. This page knows nothing about coordinates or maps: it takes one sight line and one angle and decomposes a single right triangle. If your problem starts with two points, it belongs to a different tool.

Use the distance calculator when you have two points: it finds the straight-line distance between coordinate pairs in 2D or 3D, and the great-circle distance between two latitude and longitude pairs, with bearings and unit conversions. Use this page when you have one observer, one target, and an angle: a rangefinder shot, a drone's height over its ground track, a roof or hillside sight line. The two tools meet at the Pythagorean theorem and otherwise do different work. A related special case, the straight-line span across a rectangle or box corner, is covered by the diagonal distance calculator, which is the same square-root step as Mode 3 without the angle.

One more boundary worth knowing: if you know the height and the angle but neither distance, rearrange Mode 2's height formula instead (distance = height / tan(angle)). That is a height-and-angle problem rather than a distance-and-angle one, and it is the one case this triangle does not take as direct inputs.

Elevation, depression, and the signs that carry them

Direction lives in the sign, and the calculator preserves it in every mode. Enter a negative angle in Mode 1 or 2 and the height difference comes out negative: slant 100 at -30 degrees returns horizontal 86.6025 and height -50.0000, a target as far below you as the positive case is above. Enter a negative height in Mode 3 and the angle comes out negative the same way.

Three edge cases are worth knowing before they surprise you. At 0 degrees the sight line is level: height difference is 0 and horizontal equals slant in Mode 1. At exactly 90 degrees in Mode 2 there is no answer, because a vertical sight line has no horizontal leg to scale from; the calculator explains this instead of printing infinity. And in Mode 3, a horizontal input of 0 with a real height is the genuinely vertical case: the angle is exactly 90 degrees (or -90 for a target straight below) and the slant equals the height itself. Angles past 90 degrees in Mode 1 are accepted and flip the horizontal sign, which describes a sight line pointing back over your shoulder; the math stays consistent even if the field use is rare. Read as a grade instead of an angle, the same height-over-horizontal ratio is what an average slope calculator reports for ground or a ramp that rises unevenly.

What competing calculators miss

The tools ranking for this problem each solve one direction of the triangle and stop. Three gaps kept showing up.

Miss 1: one direction only. The dedicated distance-angle tool elsewhere takes horizontal distance and height and returns only the angle. The angle of elevation calculators do the same single job. The clinometer tools add eye height and return only a height. None of them also splits a slant reading into horizontal and height, which is the direction rangefinder, drone, and archery users actually start from. This page runs all three directions in one place, with the same triangle and consistent four-decimal output.

Miss 2: degrees only. Every competitor found reports degrees and drops the radians, even though radians are the unit physics, engineering, and programming work in. Each mode here shows the radians value beside the result, converted exactly (30 degrees = 0.5236 rad; 24.8002 degrees = 0.4328 rad).

Miss 3: no guard on the impossible input. Divide a horizontal distance by cos(90 degrees) and a naive tool prints infinity or a nine-digit slant. This calculator checks for the near-zero cosine and tells you the slant is undefined at 90 degrees. It also validates negative distances and the both-zero case in Mode 3, rather than returning NaN and leaving you to guess which input it disliked.

One honest limit: the triangle is flat. Over field distances that is the right model, but it ignores observer eye height (add yours to the height result if you measured from eye level and need ground-to-target height) and it ignores Earth's curvature, which only starts to matter over kilometres. Consumer rangefinders and phone inclinometers also add roughly 1 to 2 percent of measurement error, so treat the fourth decimal as guidance, not gospel.

Disclaimer: results are only as accurate as your measurements. Verify critical structural or safety calculations with professional instruments and methods.

Frequently Asked Questions

It splits a line-of-sight distance and angle into horizontal range and height difference, or works the triangle backwards: given horizontal distance and angle it finds slant distance and height, and given both legs it finds the angle itself. All three directions live in the three tabs of one tool.

Positive for elevation (looking up), negative for depression (looking down). A negative angle produces a negative height difference, which simply means the target is below you. A slant of 100 at -30 degrees gives the same horizontal distance, 86.6025, with a height of -50.0000.

Enter degrees. The calculator converts internally and shows the radians value in the results for reference: 30 degrees is 0.5236 rad, and the Mode 3 example angle of 24.8002 degrees is 0.4328 rad.

Yes. Use any unit for distance, feet, meters, yards, as long as every distance input uses the same one. All outputs follow the input unit, because the trigonometry only ever multiplies or divides distances by pure ratios.

At exactly 90 degrees the line of sight points straight up, so there is no horizontal distance to divide, and the slant distance is undefined. The calculator tells you so instead of printing infinity. In Mode 3 the same vertical case is valid: zero horizontal distance with a real height returns an angle of exactly 90 degrees.

An angle of elevation calculator finds the angle from height and horizontal distance. This page does that in Mode 3, plus the two forward directions, so it replaces that tool while adding the slant-distance solutions most elevation calculators lack.

Yes. Mode 1 converts a ranged line-of-sight distance into the true horizontal distance, which is the number that matters for arrow drop and club selection. A 40 degree shot ranged at 40 yards is only 30.6418 yards horizontally.

Add This Calculator to Your Website

Embed the Distance Angle Calculator on your own site. Pick a size to preview it live, then copy the code.

Powered by Calculator Zilo

References

  1. OpenStax, Rice University, Algebra and Trigonometry 2e, Section 7.2, "Right Triangle Trigonometry". The definitions of sine, cosine, and tangent as side ratios, and their use for measuring heights and distances. OpenStax: 7.2 Right Triangle Trigonometry. Accessed October 2026.
  2. OpenStax, Rice University, Contemporary Mathematics, Section 10.8, "Right Triangle Trigonometry". Worked examples solving right triangles for missing sides and angles, including an altitude problem of the Mode 1 type. OpenStax: 10.8 Right Triangle Trigonometry. Accessed October 2026.
  3. Khan Academy, "Right triangle trigonometry review". A concise review of the basic ratios and of solving for a side, for an angle, and for word problems with right triangles. Khan Academy: Right Triangle Trigonometry Review. Accessed October 2026.
  4. Khan Academy, "Right triangles and trigonometry: FAQ". Covers the trigonometric ratios and where trigonometry is used in the real world, including surveying, architecture, and engineering. Khan Academy: Right Triangles and Trigonometry FAQ. Accessed October 2026.
  5. LibreTexts, Mathematics, "Right Triangle Trigonometry" (Hope College, Math 125). Key equations and glossary definitions for angle of elevation and angle of depression used in this article. LibreTexts: 5.2 Right Triangle Trigonometry. Accessed October 2026.
  6. Math Is Fun, "Sine, Cosine and Tangent". A plain-language introduction to the three ratios this calculator is built from, with worked triangle examples. Math Is Fun: Sine, Cosine and Tangent. Accessed October 2026.

Related calculators

Geometry Calculators45 45 90 Triangle Calculator A 45-45-90 triangle is the isosceles right triangle: two equal legs, a right angle, and a hypotenuse that is always the leg times √2.Geometry CalculatorsPerimeter Formula Calculator – Calculate Perimeter of Any Shape InstantlyGive this calculator a shape and its dimensions and it returns the perimeter with the formula written out and your numbers substituted, so you can follow every step.Geometry CalculatorsParallel Or Perpendicular CalculatorAre two lines parallel, perpendicular, or neither?Geometry Calculators30 60 90 Calculator: Solve Any Triangle FastA 30-60-90 triangle locks its sides into the ratio 1: √3: 2, so a single known value fixes the whole triangle.Geometry CalculatorsSin Calculator: Free Trigonometry Tool OnlineA sin calculator should do more than one ratio.Geometry CalculatorsGeometric Formula CalculatorSix shapes account for most geometry homework and most job-site measurement questions: rectangle, circle, triangle, square, sphere and cylinder.

We use cookies to analyze traffic. You can accept or decline cookies below. Learn more

calculatorzilo

CalculatorZilo

Free calculators for everyday life. No signup, no cost, just answers.

Categories

Finance Math Health & Fitness Education Science Real Estate Chemistry Browse all calculators

Popular tools

Mortgage Payment Calculator BMI Walking Calculator Salary Per Minute Calculator Percentage Off Calculator

Company

About Us Contact Us Privacy Policy Terms and Conditions
Disclaimer Cookie Policy DMCA Policy Affiliate Disclosure FAQ Accessibility Statement

© 2026 CalculatorZilo • Free calculators for everyone

  • Home
  • Calculators
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
Search