Formula to Calculate the Ladder Length:
The relationship between the height, the distance from the wall, and the ladder length forms a right triangle. You can use the Pythagorean theorem to calculate the ladder length:
How far to put a ladder from a wall?
The ideal distance to keep a ladder from a wall is one foot away from the wall for every four feet of height the ladder reaches; this is commonly known as the "4 to 1 rule" for ladder safety.
Example:
If the user needs to reach a height of 10 feet and the distance from the wall is 4 feet, the calculation would be:
So, the user would need a ladder that is approximately 10.77 feet long.

Check out 6 similar Ladder Angle and Length Calculator: Find Safe Angle :