ForHosting KIT · Home, food & hobbies

Valley rafter length calculator

A 12-unit common run at a 6/12 pitch gives an 18-unit valley rafter from ridge to plate, because the valley travels on the plan diagonal, √2 times the run. Add a tail along the valley if you need one. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Run
12
Pitch
6
You get
Pitch label
6/12 length
Overhang
0
Valley run factor
1.4142
Valley run
16.9706

This valley rafter length calculator returns the sloping stock length of an equal-pitch valley rafter once you know the common horizontal run from the ridge line to the wall plate and the roof pitch as rise per twelve units of run. On a right-angle plan intersection the valley line travels on the diagonal, so the plan run is the common run multiplied by the square root of two; that diagonal valley run is then combined with the vertical rise through Pythagoras to produce the ridge-to-plate valley length, and any along-valley eave tail is added last. A classic check uses a twelve-unit run with a six-twelve pitch and zero overhang, which yields exactly eighteen units of valley stock after the square-root step. All measurements must share the same linear unit—feet, inches, or metres—because the engine never converts units for you. The work is pure deterministic arithmetic with no network calls, no sampling, and no date-dependent shortcuts.

Where valley rafter take-offs fit in DIY, trade quotes, and software

Homeowners meet this calculation when an L-shaped addition, porch valley, or garage roof needs a lumber list before the weekend install, or when a materials quote must not under-order the long valley stick after the pitch and run are fixed by the design. Framers and small contractors use the same numbers to turn a measured common run into a shopping list before they leave the yard, then add seat-cut waste and valley board thickness that the pure geometry does not include.

Estimators embed the contract in take-off tools so a schedule of run, pitch, and overhang becomes a single valley length without a spreadsheet full of hidden cells and mixed units. Product and education tools show learners why a valley is longer than the common rafter on the same run: the diagonal plan factor multiplies the horizontal distance before the pitch factor multiplies again.

Pair it with the common rafter length and roof pitch helpers when you are building a small lab of free, deterministic roof-framing calculators, and keep site judgement for jacks, hangers, and code spans that your elevation requires beyond the pure valley line.

DIY valley lumber shopping lists

Convert measured common run, roof pitch, and along-valley overhang into a valley rafter length before you buy stock at the yard.

What does the valley rafter length calculator cost?

It is free in your browser on this page.

How is valley rafter length defined?

Pitch is rise per 12 units of run; equal pitches at a right-angle plan corner are assumed.

What happens if run is zero or negative?

A zero or negative common run cannot define a valley rafter length.

Is overhang measured horizontally or along the valley rafter?

Along the valley rafter: it is added after the ridge-to-plate hypotenuse, as an eave tail beyond the wall-plate intersection in the same linear unit as run.

Does this tool size common or hip rafters?

No. It only computes the equal-pitch valley rafter length from common run, pitch, and optional overhang using the diagonal √2 plan factor.

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/home/valley-rafter-length

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/home/valley-rafter-length \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"run":12,"pitch":6}'
{
  "run": 12,
  "pitch": 6
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "home.valley_rafter_length",
  "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.

What valley rafter length means and what the response contains

A valley rafter is the long sloping member that sits in the concave intersection of two roof planes, carrying the valley jack rafters from both sides down toward the wall plates. Unlike a common rafter, which runs straight down the slope of one plane, the valley travels on the bisector of the plan angle, so its horizontal projection is longer than the common run by the diagonal valley run factor. There is no lumber SKU catalogue, no jack layout table, and no code span table baked into the core number: you get a geometric take-off so you can add waste, seat cuts, and ridge or valley board thickness after the pure length is known. For equal pitches meeting at a right angle that factor is exactly the square root of two: valley_run equals run times root two. The vertical rise over that same common run is rise equals run times pitch over twelve, and the ridge-to-plate valley length is the hypotenuse of valley_run and rise. This calculator returns the parsed run, pitch, and overhang; a pitch_label such as six slash twelve; the valley_run_factor and valley_run; the vertical rise; the valley_pitch_factor equal to the square root of two plus unit-rise squared; the ridge_to_plate sloping length before any tail; the final valley_rafter_length; a unit tag; the precision used; a method tag; and a short formula string you can audit. Rejected cases include missing run or pitch, non-finite values, magnitudes above the documented ceiling, a zero or negative run, a negative pitch, and a negative overhang, because a non-positive run cannot define a valley line and a negative tail is not a physical eave.

How run, pitch, overhang, and precision are read and stay reproducible

Both roof planes are assumed to share that same pitch; unequal-pitch valleys need a different diagonal factor and are outside this contract. Overhang accepts overhang plus eave, tail, projection, and O; omitting it defaults to zero so a pure ridge-to-plate length is still one request. An equivalent unit method multiplies run over twelve by the square root of two hundred eighty-eight plus pitch squared, matching the classic framing table for unit valley length. Prefer run for the common horizontal distance from ridge to wall plate along one side of the valley, with aliases common_run, horizontal_run, and R so forms and query strings can reuse the same contract. Pitch accepts pitch plus aliases rise, pitch_rise, X, and roof_pitch, always as the rise component of an X-over-twelve pitch, never as degrees or as a unitless slope alone. Optional precision, with aliases decimals and dp, chooses decimal places for every numeric field in the response, defaulting to four and capped at fifteen so JSON goldens stay stable. Computation multiplies run by the square root of two for valley_run, multiplies run by pitch over twelve for rise, builds valley_pitch_factor as the square root of two plus unit-rise squared, multiplies run by that factor for ridge_to_plate, then adds overhang for valley_rafter_length. Pair the free browser run on this page with the priced API when you need the identical mathematical result inside an automated pipeline without re-implementing the valley geometry yourself.

Where valley rafter take-offs fit in DIY, trade quotes, and software

On this page the work runs entirely in your browser; through the API each successful lookup costs $0.002, failed validation is not charged, and nothing is stored after the response returns. That split — free interactive exploration and a priced, identical API — matches the rest of the KIT tier-A catalog and lets you move from a phone check on site to an automated pipeline without changing the mathematical result.

Trade quotes and framing take-offs

Turn run, pitch, and overhang schedules into reproducible valley_rafter_length values for written roofing and framing quotes.

Estimating software and CI fixtures

Generate deterministic equal-pitch valley rafter lengths for unit tests, property checks, and automated material take-off pipelines.

Read the full KIT documentation →