Distance Angle Calculator
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.
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
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.
- 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.
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.
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.
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.
The worked example drawn to its proportions: a slant of 100 at 30 degrees, split into 86.6025 across and 50.0000 up.
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.
| Mode | Inputs | Results |
|---|---|---|
| 1. Slant + angle (drone or rangefinder) | Slant 100, angle 30 degrees | Horizontal 86.6025; height 50.0000; angle 0.5236 rad |
| 2. Horizontal + angle (map distance) | Horizontal 70, angle 30 degrees | Slant 80.8290; height 40.4145; angle 0.5236 rad |
| 3. Horizontal + height (angle of elevation) | Horizontal 290 ft, height 134 ft | Angle 24.8002 degrees; 0.4328 rad; slant 319.4620 ft |
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
References
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
