Linear Feet Calculator

This free linear feet calculator gives you the running-foot total that trim, fencing, gutter, deck railing, and dimensional lumber are priced and ordered in. Pick a mode: rectangle perimeter for a baseboard run or a fenced yard, add-up-runs for a multi-sided fence or gutter layout, or square-feet-to-linear-feet for decking and plank flooring. Enter feet and inches, set how many of each run, and the calculator totals it.

Linear feet is a length, not an area or a volume — a 4-inch board and a 12-inch board of the same length are identical linear feet, which is exactly why material sold by the running foot is priced this way. Subtract openings where nothing runs (doorways for baseboard, gates for fence) — but leave crown molding undeducted, since it runs continuously over the doors. Add a stock length and the calculator rounds your running feet up to whole 8, 12, or 16-foot sticks.

Built on the foot as a unit of length (NIST Handbook 44) with a waste factor for miters and offcuts — no signup, no pricing. Once you have your linear feet, feed the number into the Trim, Fence, Gutters, Deck, or Retaining Wall calculator to finish the take-off with materials and fasteners.

View material estimation guides →

Linear Feet Calculator

Work out linear feet (running feet) three ways — the perimeter of a rectangle, the sum of straight runs, or a square-foot area converted to board linear feet. Subtract door and gate openings, add a stock length to see how many sticks to buy, and apply a waste factor. The running-foot unit trim, fencing, gutters, and railing are priced in. Free, no signup.

What are you measuring?

What counts as a linear foot? See the length-only diagram

Openings to subtract (optional)

No openings — the full perimeter will be used.

Stock length & waste (optional)

%

What a linear foot really is

Linear feet trips people up because it isn't an area or a volume — it's pure length, the unit material sold by the running foot (trim, fence, gutter, pipe, railing) is priced in. These engineering-style diagrams show why width and thickness never count, how a room's perimeter feeds baseboard and crown with different opening deductions, and how to turn a square-foot coverage area into running feet of boards.

The length-only diagram is why the calculator counts running goods by length alone. A linear foot is twelve inches of length regardless of width or thickness, so a narrow trim board and a wide one of the same length are the same linear feet. Buy trim, fence, or gutter by the linear foot and coverage goods by the square foot — the diagram keeps the two units apart.

One linear foot = 12 inches of length. A 2″-wide board and a 12″-wide board of the same 8 ft length are both 8 linear feet — width and thickness never count. Buy running-foot goods (trim, fence, gutter) by the linear foot; buy coverage goods by the square foot.Source: 1 linear foot = 12 inches, length only (NIST Handbook 44; src/lib/calculators/linearFeet.js)See the A linear foot is length only diagram →(opens in a new tab)

The perimeter diagram explains why the deduction depends on the trade. A rectangle’s perimeter is a fixed number, but baseboard skips the doorways while crown runs over them, so the same room gives two different linear-foot totals. That is why the calculator asks what the run is for before it deducts openings.

A rectangle’s perimeter is 2 × (length + width): a 14 × 12 ft room is 52 LF. The deduction depends on the trade — baseboard skips a 3 ft doorway (52 − 3 = 49 LF), but crown runs over it and keeps the full 52 LF.Source: Perimeter = 2 × (L + W); openings deducted for base, not crown (src/lib/calculators/linearFeet.js)See the Perimeter = 2 × diagram →(opens in a new tab)

The area-to-length diagram is why board width changes the linear feet for the same floor. Coverage becomes running feet through the board’s face width, so narrower boards need more linear feet to cover the same area. Order decking or flooring by the linear foot without accounting for width and the count is off.

A coverage area becomes running feet through the board’s face width: LF = area × 12 ÷ (width + gap). The same 200 ft² is 422 LF of 5½″ deck boards but 686 LF of 3½″ boards — narrower boards need more linear feet. Order decking, flooring, and pickets by the linear foot.Source: LF = area × 12 ÷ (board width + gap); BOARD_WIDTH_PRESETS (src/lib/calculators/linearFeet.js)See the Square feet to linear feet of boards diagram →(opens in a new tab)

Share this calculator with your customers

Run a contractor site, supply store, or blog? Drop this free linear feet calculator straight onto your own page so your visitors can estimate materials without leaving. No signup, works on any website — just copy and paste.

Related Calculators

Explore Measuring & Estimating: calculators, diagrams & guidesEvery calculator, cross-section diagram, and guide for this trade in one place.

How to Use This Calculator

  1. Pick a measure mode: Perimeter (a rectangle), Add up runs (a list of straight segments), or Square feet → linear feet (board coverage).
  2. Perimeter mode: enter the length and width; the calculator returns 2 × (length + width).
  3. Runs mode: add a row per straight segment with its feet, extra inches, and how many identical runs.
  4. Subtract openings where no material runs — doorways for baseboard, gates for fencing. Leave this empty for crown molding, which runs continuously.
  5. Square-feet mode: enter the area and pick a board (or a custom face width) plus the install gap to convert to board linear feet.
  6. Optionally pick a stock length (8, 12, 16 ft …) to see how many sticks to buy, and set a waste factor — 10–15% for miter-heavy trim, 5–10% for straight runs.
  7. Click Calculate to see linear feet to buy, net linear feet, openings subtracted, and pieces, then open the Trim, Fence, Gutters, or Deck calculator.

Linear Feet vs. Square Feet vs. Board Feet

These three units trip people up because they measure different things. Linear feet (running feet) measures LENGTH only — it is what you use for trim, fencing, gutter, railing, and dimensional lumber sold by the running foot, where width does not change the price. Square feet measures AREA (length × width) — drywall, paint, tile, and sheet flooring. Board feet measures VOLUME (thickness × width × length) — the unit hardwood and rough lumber are priced in. A 16-foot board is always 16 linear feet, but its square feet and board feet change with its width and thickness. This calculator stays in the linear lane: it also converts a square-foot area to the linear feet of boards needed to cover it, using the board face width plus the install gap.

Frequently Asked Questions

How do you calculate linear feet?

Linear feet measures length only, so it depends on what you're measuring. For a rectangle (a room or a fenced yard) it's the perimeter: 2 × (length + width) — a 14 × 12 ft room is 2 × (14 + 12) = 52 linear feet. For an irregular layout, add up every straight run: a 40 ft fence side plus two 25 ft sides is 40 + (25 × 2) = 90 linear feet. To convert feet and inches, divide the inches by 12 (12 ft 8 in = 12.67 ft). This calculator does all of that and subtracts openings for you.

What is the difference between linear feet and square feet?

Linear feet measures length only; square feet measures area (length × width). Material that runs in a line — baseboard, crown, fence rail, gutter, deck railing, dimensional lumber — is sold by the linear foot, because a 4-inch board and a 12-inch board of the same length cost the same per running foot. Material that covers a surface — drywall, paint, tile, sheet flooring, sod, roofing — is sold by the square foot. Using the wrong unit over- or under-buys by the width of the material, so match the unit to how the product is sold. The length-only diagram shows length versus area.

How do I convert square feet to linear feet?

You can only convert square feet to linear feet if you know the width of the boards covering the area. The formula is linear feet = area (sq ft) × 12 ÷ (board face width + gap, in inches). For example, 200 sq ft of 5½-inch deck boards installed with a 3⁄16-inch gap is 200 × 12 ÷ 5.6875 = 422 linear feet. Tongue-and-groove flooring with no gap uses just the face width. Set the area, board width, and gap in this calculator's square-feet mode and it does the conversion. The area-to-linear diagram shows LF = area × 12 ÷ board width.

Do I subtract doors and windows from linear feet?

It depends on the trim. For baseboard, yes — subtract every door and cased opening, because the baseboard stops at the casing. For crown molding, no — crown runs continuously around the room over the top of the doors, so you use the full perimeter with no deductions. Windows usually don't affect baseboard (they sit above it) but can interrupt chair rail. Use this calculator's openings section to deduct doorways for baseboard and leave it empty for crown.

How many linear feet of baseboard do I need for a room?

Start with the room perimeter — 2 × (length + width) — then subtract the width of each doorway. A 14 × 12 ft room is 52 linear feet of perimeter; with one 3 ft doorway that's 49 linear feet of baseboard. Add 10–15% waste for miter and cope cuts, so you'd buy about 55 linear feet, or four 14-ft sticks. This calculator's perimeter mode plus the openings deduction gives you the net run and the number of sticks to buy. The perimeter diagram shows perimeter = 2 × (length + width).

Is linear feet the same as lineal feet?

Yes — 'lineal feet' and 'linear feet' mean the same thing: a measurement of length in feet, where 1 linear foot equals 12 inches. 'Linear' is the more common spelling in math and most trades; 'lineal' shows up in the lumber and flooring industries, especially on price lists ('priced per lineal foot'). Both ignore width and thickness and refer only to running length, so you can use the numbers from this calculator interchangeably for either term.

Does this calculator show material prices?

No. Like every calculator on the site, it's pricing-free — it gives you quantities (linear feet, net linear feet, openings subtracted, and pieces to buy), not dollar figures, because prices for trim, fencing, and lumber move constantly by region and grade. Take your linear-foot total to a supplier for a current per-foot or per-stick quote. To finish the take-off with materials and fasteners, hand your number to the Trim, Fence, Gutters, Deck, or Retaining Wall calculator.