ForHosting KIT · Developer Utilities

Slope angle to grade percentage calculator

This slope angle to grade calculator converts an inclination measured in degrees into a percentage grade.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

It applies the standard relationship between a line's angle and its vertical rise per unit of horizontal run: grade equals the tangent of the angle multiplied by one hundred. The result is useful for roads, ramps, trails, roofs, drainage plans, and surveying notes. Positive angles produce uphill grades, negative angles produce downhill grades, and zero degrees produces a level grade of zero percent.

What angle and percentage grade describe

A slope angle and a percentage grade describe the same inclination in two different ways. The angle is measured from a level horizontal reference, while grade compares vertical change with horizontal run. A grade of 10 percent means the elevation changes by 10 units for every 100 horizontal units; it does not mean the surface rises 10 units along 100 units of sloped distance. That distinction matters when reading engineering drawings, trail profiles, road signs, or accessibility plans. Enter the signed angle in degrees. A positive value represents a climb as horizontal position increases, a negative value represents a descent, and zero represents level ground. The calculator returns the original angle, its radian equivalent, and the computed percentage grade. Keeping the sign makes the output useful in calculations where direction matters, while the magnitude alone can be used when only steepness is relevant. All accepted angles are strictly between negative and positive 90 degrees because a vertical line has no finite horizontal-run grade.

How the tangent conversion works

The calculation first converts degrees to radians by multiplying the angle by π and dividing by 180. It then evaluates the tangent of that radian angle. In a right triangle, tangent is the ratio of the side opposite the angle to the adjacent side. For a slope, those sides correspond to vertical rise and horizontal run, so the tangent is exactly the decimal slope ratio. Multiplying that ratio by 100 expresses it as percentage grade. For example, an angle near 5.71 degrees corresponds to a tangent near 0.10 and therefore a grade near 10 percent. The relationship is nonlinear: doubling an angle does not generally double its grade, especially for steep slopes. Near zero, angle and grade change almost proportionally, but the grade grows increasingly quickly as the angle approaches 90 degrees. The implementation uses the runtime's deterministic tangent function, rejects missing and non-finite values, and returns stable numeric precision suitable for JSON, spreadsheets, scripts, and repeatable API workflows.

Using the result safely in a project

Use the percentage result as a mathematical conversion, then apply the standards and tolerances appropriate to your project. A measured field angle may include instrument error, surface irregularity, or a reference line that is not truly horizontal. Rounding too early can also matter over a long run, so retain the returned value for calculations and round only for display or reporting. When comparing the result with a regulation, confirm whether that document defines slope using horizontal run, sloped length, a ratio such as 1 in 12, or a signed direction. Those conventions can look similar while producing different numbers. The calculator does not certify accessibility, road safety, drainage performance, structural adequacy, or compliance with a local code. It provides the underlying trigonometric conversion so engineers, builders, landscape designers, cyclists, and students can place an angle measurement on the percentage-grade scale. For a descending route, preserve the negative sign in data processing, or use the absolute value only when a specification explicitly asks for steepness without direction.

Interpret a survey measurement

Turn an inclinometer or survey angle into the percentage grade used in a site profile or earthwork calculation.

Compare route steepness

Convert trail, driveway, or cycling-climb angles to a common percentage scale while preserving uphill and downhill direction.

Check a design calculation

Verify the trigonometric step in a ramp, roof, drainage, or road design before applying project-specific standards.

What formula converts slope angle to grade percentage?

The formula is grade percentage = tan(angle in degrees × π / 180) × 100.

Why is a 45 degree slope equal to a 100 percent grade?

The tangent of 45 degrees is 1, meaning one unit of vertical rise for each unit of horizontal run. Multiplying that ratio by 100 gives 100 percent.

Can the angle be negative?

Yes. A negative angle returns a negative grade and represents a descent relative to the chosen horizontal direction.

Why are 90 degrees and steeper angles rejected?

At 90 degrees the horizontal run is zero, so percentage grade is not finite. Angles outside the open interval from -90 to 90 do not represent a finite single-valued slope in this convention.

What does the API request cost?

Each API request costs $0.002. The same deterministic calculation can also run in the browser.

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.

POSThttps://api.kit.forhosting.com/geo/angle-to-grade

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.

curl -X POST https://api.kit.forhosting.com/geo/angle-to-grade \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"angle_degrees":30}'
{
  "angle_degrees": 30
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "geo.angle_to_grade",
  "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.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →