Ladder angle against wall calculator
Know how steep your ladder stands before you climb: a 5 m ladder with its foot 3 m from the wall leans at about 53.13° to the ground. You get degrees, radians and the ratio used. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Ladder length
- 5
- Base distance
- 3
- Angle degrees
- 53.1301023542
- Angle radians
- 0.927295218
- Cosine ratio
- 0.6
This ladder angle calculator finds the acute angle between a straight ladder and level ground when you know the ladder’s total length and the horizontal distance from its foot to the wall. It treats those measurements as the hypotenuse and adjacent side of a right triangle, divides base distance by ladder length, and applies inverse cosine. The result includes degrees, radians, and the cosine ratio used in the calculation. Both measurements must use the same unit, each must be greater than zero, and the base distance cannot exceed the ladder length. The calculation is deterministic and runs without network access.
Model the ladder, wall, and ground as a right triangle
A ladder leaning against a vertical wall forms a right triangle when the ground is level and the wall is perpendicular to it. The ladder is the hypotenuse, which is the side opposite the right angle and the longest side of the triangle. The horizontal gap from the foot of the ladder to the wall is the adjacent side for the angle at the ground.
The vertical height reached on the wall is the remaining side, but it is not needed for this calculation. For an angle theta at the ladder’s foot, cosine theta equals adjacent divided by hypotenuse. The calculator reports that angle in degrees for familiar construction or classroom use and in radians for software and mathematical workflows.
Use one consistent length unit for both inputs. Five meters and three meters work, as do five feet and three feet, because equal units cancel in the ratio. Mixing feet with meters produces a meaningless ratio even though both values are individually valid numbers.
This model assumes a straight ladder, a single contact point, level ground, and a vertical wall; uneven surfaces or wall lean require a more complete geometric survey.
Enter measurements that describe a possible ladder position
Both fields must be finite numbers greater than zero. The base distance must also be less than or equal to the ladder length, because a right triangle cannot have a leg longer than its hypotenuse. If the base distance equals the ladder length, the mathematical result is zero degrees: the ladder lies along the ground and does not reach up the wall.
As the foot moves closer to the wall while length remains fixed, the ratio becomes smaller and the angle approaches ninety degrees. A base distance of zero is rejected rather than reported as ninety degrees because the requested physical setup requires a positive ground distance and a ladder placed exactly against the wall is not a usable leaning triangle. The method field explicitly identifies inverse cosine of base distance over ladder length, making saved results easy to interpret later.
Interpret the angle and apply it responsibly
The returned angle describes geometry only: it is the angle between the ladder and the ground under the supplied idealized measurements. For example, a ladder length of five and a base distance of three produce a cosine ratio of 0.6 and an angle of about 53.13 degrees. A base distance equal to half the ladder length gives sixty degrees.
These checks are useful in trigonometry lessons, diagram verification, estimating the orientation represented in a drawing, and preprocessing measurements for another calculation. They do not certify that a real ladder placement is safe. Safe setup depends on the ladder type, manufacturer instructions, surface condition, securing methods, load, access rules, and applicable workplace guidance.
Measurement error also matters: a small change in the base distance changes the angle, especially near steep positions, so measure the horizontal gap rather than estimating it from a sloping or obstructed surface. The calculator does not compute reach height, required ladder length, overhang above a landing, or clearance from hazards. Those are separate questions with additional inputs.
What you can do with it
Check a trigonometry exercise
Verify the ground angle from a stated ladder hypotenuse and adjacent base distance using the cosine relationship.
Validate a diagram
Compare the angle labeled on a ladder-and-wall drawing with the angle implied by its two length measurements.
Process field measurements
Convert consistent ladder length and wall-offset measurements into deterministic degree and radian values for a record or application.
FAQ
What formula calculates the ladder angle?
The calculator returns the result in degrees and radians.
Which angle does the result describe?
It is the acute angle at the ladder’s foot between the ladder and level ground, not the angle between the ladder and the wall.
Do both measurements need the same unit?
Yes. Both may be meters, feet, inches, or another length unit, but they must match because the calculation uses their ratio.
Why can the base distance not exceed the ladder length?
The ladder is the hypotenuse of the right triangle and must be at least as long as either leg. A larger base distance describes an impossible triangle.
Is the calculated angle proof that a ladder setup is safe?
No. It is a geometric result only. Follow the ladder manufacturer’s instructions and applicable safety guidance, and account for surface, securing, load, and site conditions.
Related tools
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/trig/ladder-angle \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"ladder_length":5,"base_distance":3}'const res = await fetch("https://api.kit.forhosting.com/trig/ladder-angle", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"ladder_length": 5,
"base_distance": 3
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/trig/ladder-angle",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"ladder_length": 5,
"base_distance": 3
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/trig/ladder-angle", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"ladder_length":5,"base_distance":3}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"ladder_length":5,"base_distance":3}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/trig/ladder-angle", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"ladder_length": 5,
"base_distance": 3
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "trig.ladder_angle",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
Model the ladder, wall, and ground as a right triangle
In this setting, that ratio is base_distance divided by ladder_length. Applying inverse cosine gives theta: angle = acos(base_distance / ladder_length).
Enter measurements that describe a possible ladder position
Provide ladder_length as the full usable length from the foot on the ground to the point touching the wall. Provide base_distance as the horizontal distance from the wall to the ladder’s foot, not the distance measured along the ladder and not the height reached on the wall. On success, angle_degrees is the primary result, angle_radians is its radian equivalent, cosine_ratio records the validated division, and the normalized measurements are echoed for auditing.
Interpret the angle and apply it responsibly
For automation, the same deterministic calculation is available for $0.002 per item. Invalid measurements return an invalid_input error instead of NaN, so a spreadsheet import or application can stop and request corrected data rather than quietly storing an impossible angle.