How to Calculate Slope and Ramp Ratio: Easy Formulas, Examples, and Percentage Guide

Learn how to calculate slope and ramp ratio with simple formulas. Covers rise over run, slope percentage, ramp ratio examples, the equation method, worked practice problems, and common mistakes.

## Introduction: Why Slope Matters More Than You Think Let me start with a simple truth. Slope shows up everywhere in real life—whether you realise it or not. It is in the wheelchair ramp outside a hospital, the road you drive to work, the roof over your head, the drainage pipe behind your house, and the hiking trail you climbed last summer. And yet, most people freeze the moment someone says, "Calculate the slope." Here is the good news: slope is one of the most forgiving topics in maths. If you can subtract two numbers and divide, you can already do this. In this guide, I am going to teach you slope the way I would teach it in a classroom—slowly, with real examples, and with the reasoning behind every step. By the end, you will be able to calculate slope, slope ratio, ramp ratio, and slope percentage with confidence. You can also verify your answers instantly using our interactive [Slope Calculator](/slope-calculator/). ![How to calculate slope rise over run formula on graph](https://images.unsplash.com/photo-1509228468518-180dd4864904?auto=format&fit=crop&w=1200&q=80) --- ## What Is Slope? The Basic Idea Slope measures **how steep** a line, hill, trail, or ramp is. That is the whole concept in one sentence. Think of it this way: if you walk along a path and you go up 3 metres while moving 10 metres forward, your "steepness" is that comparison—how much up versus how much across. The core formula is beautifully simple: **Slope = Rise ÷ Run** Now let us define the two parts carefully, because this is where most mistakes begin: - **Rise** = the vertical change (how much something goes up or down) - **Run** = the horizontal change (how far it goes across) ### The Rule Students Always Forget Always use the **horizontal run**, not the sloped length. This is the single most important rule in this entire article. If you measure a ramp along its slanted surface and call that the run, every answer you calculate afterwards will be wrong. The run is the flat, horizontal distance along the ground. Also, always keep rise and run in the **same units**—both in inches, both in feet, both in metres. Never mix them. For quick calculations, use our [rise over run calculator tool](/slope-calculator/). --- ## How to Calculate Slope from Two Points If you have two points on a line, (x₁, y₁) and (x₂, y₂), the formula is: **m = (y₂ − y₁) ÷ (x₂ − x₁)** Here, **m** is the standard letter used for slope. The top part of the fraction is the rise, and the bottom part is the run. ### Example 1: A Positive Slope Let us use the points (2, 3) and (6, 7). **Step 1 — Find the rise.** Subtract the y-coordinates: 7 − 3 = **4** **Step 2 — Find the run.** Subtract the x-coordinates: 6 − 2 = **4** **Step 3 — Divide.** 4 ÷ 4 = **1** The slope is **1**. What does that actually mean? It means the line rises 1 unit for every 1 unit it moves to the right. It climbs at a perfect 45-degree angle. This is called a **positive slope** because the line goes upward as you move right. ### Example 2: A Negative Slope Now try (1, 5) and (4, 2). - Rise = 2 − 5 = **−3** - Run = 4 − 1 = **3** - Slope = −3 ÷ 3 = **−1** The slope is **−1**. A negative slope means the line **falls** as it moves to the right. It is going downhill. Do not panic when you see a negative number—it is not an error. It is information. ### Example 3: Zero and Undefined Slope Two special cases are worth knowing. **A flat line** has a slope of **zero**. For example, points (1, 4) and (5, 4) give a rise of 0, so the slope is 0 ÷ 4 = **0**. A perfectly flat surface has no steepness at all. **A vertical line** has an **undefined** slope. Points (3, 1) and (3, 7) give a run of 0, and you cannot divide by zero. So we say the slope is undefined—the line is perfectly vertical. You can test these coordinate examples directly on the [Slope Calculator](/slope-calculator/). --- ## How to Calculate Slope Ratio Now we move from algebra into practical measurement. Slope ratio compares rise to run and is written as **rise : run**. **Ratio = Rise : Run** The goal is almost always to simplify it into the form **1 : n**, because that is easy to read and easy to compare. To convert any slope into **1 : n**, use this: **n = Run ÷ Rise** ### Example Suppose a rise of 2 metres over a run of 10 metres. - Ratio = **2 : 10** - Divide both sides by 2 → **1 : 5** This means **1 unit of rise for every 5 units of run**. You can now immediately picture it: a gentle slope. ### Another Example Rise = 3 feet, Run = 12 feet. - Ratio = **3 : 12** - Simplify → **1 : 4** Smaller second number means steeper slope. **1:4 is steeper than 1:12.** That is a useful instinct to develop. --- ## How to Calculate Ramp Slope Ratio For a ramp, the process is identical—but the stakes are higher, because ramp ratios affect safety and accessibility. Measure the vertical height and the horizontal distance. Again: **do not use the sloped surface length as the run.** **Ramp Ratio = Rise : Run** ![Wheelchair ramp 1 to 12 slope ratio engineering example](https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1200&q=80) ### Example: The Classic 1:12 Ramp Rise = 24 inches, Run = 288 inches. - Ratio = **24 : 288** - Divide both by 24 → **1 : 12** A **1:12** ramp means 1 inch of rise for every 12 inches of horizontal run. This is a widely used accessibility standard because it is gentle enough for wheelchairs, walkers, and strollers. ### Finding the Run from a 1:n Ratio Here is a question I get asked constantly: *"I know my ratio and my rise—how much run do I need?"* The formula is: **Run = n × Rise** If the ratio is 1:12 and the rise is 30 inches: **Run = 12 × 30 = 360 inches = 30 feet** So a 30-inch rise needs 30 feet of horizontal run. That is why ramps for tall buildings end up so long—it is not poor design, it is maths. ### A Quick Word on Accessibility Standards In the United States, the ADA (Americans with Disabilities Act) generally caps ramp slope at **1:12** for new construction. In the UK, Approved Document M and BS 8300 give similar guidance. Australia's AS 1428.1 and Canada's accessibility codes also follow comparable principles. **Important note:** Always check the current local code for your specific project. Building codes are updated, and requirements differ by building type, occupancy, and whether the ramp is interior or exterior. You can model accessibility dimensions using our [ramp ratio calculator](/slope-calculator/). --- ## How to Calculate Slope Percentage Roads, trails, and ramps are very often described in percentages rather than ratios. The formula is: **Percent Slope = (Rise ÷ Run) × 100** Do not forget that × 100. It is the number one reason people get percentage answers wrong. ![Roof slope pitch and gradient percentage calculation in construction](https://images.unsplash.com/photo-1541888946425-d0fbb18f244b?auto=format&fit=crop&w=1200&q=80) ### Example 1 Rise = 5 m, Run = 50 m - Percent Slope = (5 ÷ 50) × 100 = 0.10 × 100 = **10%** This means the ground climbs 10 units vertically for every 100 units horizontally. ### Example 2 Rise = 12 ft, Run = 80 ft - Percent Slope = (12 ÷ 80) × 100 = 0.15 × 100 = **15%** ### Ramp Example Rise = 24 in, Run = 288 in - Percent Slope = (24 ÷ 288) × 100 ≈ **8.33%** So a 1:12 ramp is roughly an **8.33% slope**. This is worth memorising, because ramp specifications are sometimes written as a percentage instead of a ratio. ### Reading Slope Percentages in Real Life - **0–2%** — nearly flat; typical of parking areas and drainage gradients - **5%** — noticeable but comfortable on foot - **8–10%** — a firm climb; this is where ramps get long - **15%+** — steep; difficult for wheels, carts, or wheelchairs --- ## How to Find Slope from an Equation If a linear equation is written in **slope-intercept form**: **y = mx + b** Then the slope is simply **m**. You do not need to calculate anything—it is already sitting there. ### Examples **y = 3x − 6** → slope = **3** **y = −2x + 9** → slope = **−2** **y = 0.0833x** → slope = **0.0833**, which equals 1/12, so the ratio is **1:12** If the equation is **not** in y = form, rearrange it first. For example, if you have 2y = 6x + 4, divide everything by 2 to get y = 3x + 2, so the slope is **3**. --- ## How Slope, Ratio, and Percentage Relate This is the part that ties everything together. Once you understand that slope, ratio, and percentage are three ways of describing the **same thing**, the topic stops feeling confusing. | Slope (m) | Ratio | Percentage | |-----------|-------|------------| | 0.1 | 1 : 10 | 10% | | 0.125 | 1 : 8 | 12.5% | | 0.0833 | 1 : 12 | 8.33% | | 0.25 | 1 : 4 | 25% | | 1 | 1 : 1 | 100% | **To convert a ratio to a decimal slope:** divide 1 by n. For 1:12, that is 1 ÷ 12 ≈ 0.0833. **To convert a decimal slope to a ratio:** take the reciprocal. For 0.0833, that is 1 ÷ 0.0833 = 12, so 1:12. --- ## Common Mistakes to Avoid I have marked thousands of these, so let me warn you about the errors I see most often. 1. **Using the sloped length as the run.** Always use horizontal distance. This is the big one. 2. **Mixing units.** If the rise is in inches and the run is in feet, convert first. One foot = 12 inches. 3. **Forgetting to simplify ratios.** Write 24:288 as **1:12**, not as a raw pair of numbers. 4. **Ignoring a negative slope.** A negative value means the line falls. It is valid information, not a mistake. 5. **Forgetting to multiply by 100** when calculating percentage slope. 6. **Dividing by zero.** A vertical line has an undefined slope. Check your run before you divide. --- ## Practice Problems Try these on your own. Answers are below. **Question 1.** Find the slope between points (3, 2) and (7, 10). **Question 2.** A ramp rises 18 inches over a horizontal run of 216 inches. What is the ratio? **Question 3.** A trail climbs 9 metres over 60 metres of horizontal distance. What is the percentage slope? **Question 4.** A ramp has a 1:15 ratio and a rise of 20 inches. How much run is required? **Question 5.** What is the slope of the line y = 4x − 11? ### Answers 1. Rise = 8, Run = 4, Slope = **2** 2. 18:216 → **1:12** 3. (9 ÷ 60) × 100 = **15%** 4. Run = 15 × 20 = **300 inches = 25 feet** 5. Slope = **4** If you got all five, you have genuinely mastered this topic. If not, go back to the worked example above that matches the question you missed. You can also practice more problems using our online [Slope Calculator](/slope-calculator/). --- ## Quick Summary - **Slope** = Rise ÷ Run - **Two points:** m = (y₂ − y₁) ÷ (x₂ − x₁) - **Slope ratio** = Rise : Run, simplify to **1 : n** - **To find n:** n = Run ÷ Rise - **Ramp ratio** = Rise : Run, always using horizontal run - **Percent slope** = (Rise ÷ Run) × 100 - **Equation y = mx + b** → slope = m - **1:12 ramp** = 1 unit rise per 12 units run ≈ 8.33% slope - **Negative slope** = line falls; **zero slope** = flat line; **undefined slope** = vertical line --- ## Final Thoughts Here is what I want you to take away from this guide. Slope is not a formula to memorise—it is a **comparison** between going up and going across. Once that clicks, every version of the calculation (the two-point formula, the ratio, the percentage, the equation) is just the same idea wearing a different outfit. Start with rise ÷ run. Always use horizontal distance. Keep your units consistent. Simplify your ratios. And check your answer by asking yourself: *does this number feel steep or gentle?* That instinct will catch almost every error. With these formulas and a bit of practice, you can confidently calculate slope, slope ratio, ramp ratio, and percentage slope for any line, hill, trail, road, or ramp—clearly, accurately, and without second-guessing yourself. Bookmark our [Slope Calculator](/slope-calculator/) for your next math assignment or construction project!