Skip to content
Design free

Design

A-Frame Cabin Loft: How Big, How Tall and Whether You Can Sleep In It

The loft is the best part of an A-frame and the part most often drawn too small. Here is how much of it you can stand in at each width and angle, what the IRC asks before you sleep up there, and how you get up.

By The Cabin PlannerUpdated 12 min readChecked against 3 sources

A frame cabin loft: a sleeping loft with a ladder and guard rail under the sloped ceilingIllustration

The short answer

An A-frame cabin loft is limited by the roof, not by the floor: only the strip under the peak has headroom. In our designer, a 20 ft wide cabin at 60 degrees gives a loft strip about 6 ft wide with 3 ft of headroom, enough for a sleeping loft. At 55 degrees the same cabin gets about 29 sq ft, which is short of the 35 sq ft the tiny house appendix asks for, so it is drawn as storage.

The loft is why most people want an A-frame. It is also the part where a drawing and a building part ways, because the roof comes down to the floor and eats most of the space you thought you had. This guide shows how much loft you actually get from the geometry, what the code asks before you can sleep in it, how you climb up, and what is left underneath.

The numbers come from the cabin designer we sell plans for, run at each width and angle, and from the 2021 International Residential Code1 (IRC). We sell plans, so read us with that in mind. Where a figure is ours, it says so.

How Big an A-Frame Cabin Loft Can Be

On a rectangular house the loft floor is the floor plan. On an A-frame it is a slice. Both slopes meet at the peak, and every foot you move sideways from the center, the ceiling drops by the tangent of the roof angle. The code counts floor only where you can stand or sit, so the useful loft is a strip under the ridge.

Width and angle decide the strip

Our designer draws the loft floor about 7 ft 6 in above the main floor, with clear height under the loft joists kept to 6 ft 8 in so the space below stays usable. At that height, the roof has already closed in on the sides. A wider cabin puts the walls farther apart at that height, and a steeper roof leaves the walls closer to vertical, so both help.

The four angles the designer draws are 45, 50, 55 and 60 degrees, which are roof pitches of 12/12, 14.3/12, 17.1/12 and 20.8/12. We ran cabins of 400 sq ft or less (14 to 20 ft wide, 20 ft long) with an 8 ft loft, sleeping loft requested, at each angle:

Cabin Angle Loft floor wide at the joists Headroom at the peak Loft floor with 3 ft headroom What the designer draws
20x20 60 degrees 9 ft 7 in 8 ft 4 in about 48 sq ft sleeping loft
20x20 55 degrees 7 ft 10 in 5 ft 7 in about 29 sq ft storage loft
20x20 50 degrees none none none no loft: too low
18x20 60 degrees 8 ft 1 in 7 ft about 37 sq ft sleeping loft
18x20 55 degrees 6 ft 4 in 4 ft 6 in about 16 sq ft storage loft
16x20 60 degrees 6 ft 1 in 5 ft 4 in about 21 sq ft storage loft
14x20 60 degrees none none none no loft: too low

These are our designer’s results with the default roof, a 4 ft porch and 24 in rafter spacing, not a code table. The pattern is the useful part: a loft you can sleep in wants a wide cabin and the steepest roof. Below 60 degrees it shrinks fast, and under 55 degrees our designer draws none at all.

From strip to square feet

The loft runs back from the ladder to the rear gable, so its area is the strip width times its length. In the designer a loft of 8 ft is a request, and the loft you get is the closest rafter pair that fits. Lengthening it adds area at the same width. On a 20x24 cabin at 60 degrees, asking for 8, 12 and 16 ft gives about 48, 73 and 97 sq ft of loft with 3 ft of headroom. Past about 18 ft of length the designer stops adding, because the loft has to leave the first 6 ft of the cabin open.

Where the cabin gets bigger, the loft does not

Width is capped at 24 ft in our designer, and the steepest roof it draws at 24 ft is 55 degrees, because a 60 degree rafter on a cabin that wide outgrows the longest stock lumber. So the loft strip tops out on a 23 ft cabin at 60 degrees, near 12 ft 4 in. A 23x32 cabin with a 12 ft loft has about 106 sq ft of floor with 3 ft of headroom, 78 sq ft with 5 ft and 51 sq ft with 7 ft. At 24 ft and 55 degrees the same loft drops back to about 81, 47 and 14 sq ft, and at 20 ft and 60 degrees it is about 73, 45 and 18. Making the cabin longer lengthens the loft, not its headroom. If you need a loft taller than that, the options are a dormer, covered in A-frame dormer, or a different house.

loft strip about 6 ft wide3 ft of headroom line6 ft 8 in clearunder the loftloft floor20 ft wide, 60 degree roof60°

Cross section at 20 ft wide and 60 degrees: the loft strip is where the roof is 3 ft or more above the loft floor.

Sleeping Loft or Storage Loft

A loft with a bed in it is a bedroom as far as the code is concerned, and a bedroom has rules a storage shelf does not. Our designer makes the distinction for you: it draws a sleeping loft where the design meets the code, and a storage loft where it does not, and the plan says which requirement it misses.

The tiny house appendix, up to 400 sq ft

Appendix AQ of the 2021 IRC1 covers tiny houses, dwellings of 400 sq ft or less of floor, not counting lofts. A loft used for sleeping must have at least 35 sq ft of floor and at least 5 ft in any horizontal dimension, counting only floor with 3 ft or more of headroom (AQ104.1.1 to AQ104.1.3). It also needs an emergency escape opening under R310, with the bottom of the clear opening no more than 44 in above the loft floor (R310.2.3; AQ105.1 accepts a roof window placed the same way). We read the appendix text in the City of Seattle’s2 printing of the 2021 code, which shows the model wording even where Seattle changed it.

That is why the 20x20 at 55 degrees above is drawn as storage: its 29 sq ft is under the 35 sq ft line. At 60 degrees it has 48 sq ft and passes.

Above 400 sq ft, a loft is a habitable attic

On a bigger cabin the appendix no longer applies, and a sleeping loft becomes a habitable attic under the main code. Our designer reads this as at least 70 sq ft of floor, 7 ft in every horizontal dimension, counting only floor with 5 ft of ceiling height, with at least half of the required area at 7 ft or more (IRC1 R304.1, R304.2, R305.1 exception 1). It also reads R311.4 to require a stairway to a habitable level, which a steep A-frame roof almost never leaves room for.

Run our 18x24 preset (432 sq ft) and the loft has about 37 sq ft with 3 ft of headroom, 19 sq ft with 5 ft and none with 7 ft, so it is drawn as storage. Even a 20x24 with a 16 ft loft, about 97 sq ft at 3 ft, has only about 60 sq ft at 5 ft and 23 sq ft at 7 ft. That is why most A-frame lofts over 400 sq ft end up as storage in our designer, and why a 400 sq ft cabin with a bed in the loft is a common size.

The load and the escape

The 2021 IRC1 sets the live load for habitable attics and attics served by a fixed stair at 30 psf, lower than the 40 psf of an ordinary floor (Table R301.5). The designer sizes loft joists for 30 psf, and for a 20 ft wide cabin it picks 2x10s. A sleeping space also needs a way out that is not the ladder: a net clear opening of at least 5.7 sq ft (R310.2.1). Our designer puts a casement window in the back gable above the loft floor, picks one whose maker publishes its clear opening, and if none fits the gable it falls back to a storage loft and says why.

Carpenter's tip

Storage is not a downgrade

A storage loft is framed for the same 30 psf and has the same guard. What it lacks is the sleeping claim. If your town does not adopt Appendix AQ, a storage loft is also the safest way to keep the permit simple.

What it adds to the materials list

Our designer’s lists make the cost of the loft visible. For a 20x20 A-frame at 60 degrees, steel roof, 4 ft porch, 30 psf snow and 115 mph wind, shell materials at The Home Depot’s3 Hamilton Mill store on October 8, 2026 come to about $12,805 with no loft, about $13,859 with an 8 ft storage loft and about $14,228 with an 8 ft sleeping loft. The sleeping version costs more because of the escape window. Stretching the sleeping loft to 12 ft adds only about $115 more, to about $14,343. Insulation, finish, wiring and labor are not in those totals.

Getting Up There

The ladder is the part people forget until the loft is framed. It has to reach a floor about 7 ft 6 in off the ground, and the more it leans out, the more floor it takes from the room below.

The ship ladder

Our designer draws a ship ladder. The 2021 IRC1 lets you use one where a required stairway serves the same space, or where no egress is required, and for lofts and similar areas of 200 gross sq ft or less (R311.7.12). Its treads must be at least 5 in deep, with tread plus nosing at least 8-1/2 in and risers of 9-1/2 in or less, and it takes a handrail on each side at 30 to 34 in (R311.7.12.1 and R311.7.12.2). Appendix AQ sends a ship’s ladder to a tiny house loft back to those same two sections and asks for at least 20 in of clear width at and below the handrails (AQ104.2.4).

For the loft floor at 7 ft 6 in, the designer draws 10 risers of 9 in, which sets the angle at about 60 degrees and the run on the floor at about 4 ft 4 in. Plan on that much floor for the ladder footprint, plus room to turn at the bottom.

Ship ladder with handrails climbing to an A-frame cabin loft inside the gableIllustration
A ship ladder is steep by design. Plan the footprint at the foot and keep it clear.

When you need a stair

On a cabin over 400 sq ft with a habitable loft, R311.4 asks for a stairway, with at least 36 in of width, 6 ft 8 in of headroom over the nosings, risers of 7-3/4 in or less and treads of 10 in or more (R311.7). At 60 degrees and 20 ft wide, our designer finds the roof leaves under 2 ft of width at the top step with that headroom. That is the practical wall: a full stair does not fit an A-frame loft, so the loft over 400 sq ft stays storage.

The guard and the open edge

A loft has an open edge, and the open edge needs a guard. Our designer draws 6x6 guard posts and plywood panels along the loft edge, sized so no opening passes a 4 in sphere. The guard load along its length is a hold point in our plan: an engineer designs it before you use the loft, and we say so rather than imply it is checked.

Headroom Under the Loft

Whatever the loft takes from the top, it takes from the room below. Our convention is 6 ft 8 in of clear height from the subfloor to the underside of the loft joists, before finishes. That is a rule of our own, not the code’s: the IRC1 asks for 7 ft of ceiling height in habitable space, and 6 ft 8 in is the height Appendix AQ asks of a tiny house.

What 6 ft 8 in leaves you

A finished floor or a ceiling under the joists takes from it. Under the tiny house rules the space under the loft then suits a kitchen, a bathroom or storage, and not a living or sleeping space. On a larger cabin the code counts that floor as sloped-ceiling room only where there is 5 ft or more, not as full 7 ft floor. So the area under the loft is a place to cook, wash or store, with the standing room to the front.

Standing room in the open half

On the 20x20 at 60 degrees, about 10 ft of the 20 ft width has 7 ft or more of clear height, which is 51 percent, about 117 sq ft of floor in front of the loft. That open half is where the table, the stove and the door live. The sides, where the roof comes down, are for beds, benches and shelves.

Check before you cut

Check the climb and the cook

Stand at the foot of the loft ladder on a drawing at full scale and ask where the door swings, where the stove goes and who walks past the ladder. A loft that works on paper can still block the room.

Design It

The quickest way to see all of this on your own width is to draw it. In the cabin designer you set the width, length, angle, loft length and loft use, and it tells you what the loft is: how much floor has 3 ft of headroom, whether it is sleeping or storage, and the reason if it is not. It prices the shell as you go.

When the design is right, the $59 plan is drawn from it, with the loft joists, the ladder, the guard and the escape window on the sheets.

Real sheets from the 31-sheet plan for the sample cabin. Select a sheet to open it full screen and read the notes.
  • A-frame cabin plans with loft: sample sheet cover, the 3d model, the size, the loads and the status

    Cover and designthe 3D model, the size, the loads and the status

  • A-frame cabin plans with loft: sample sheet piers, every pier dimensioned from one corner, footing sizes and concrete

    Piers and beamsevery pier dimensioned from one corner, footing sizes and concrete

  • A-frame cabin plans with loft: sample sheet section, the rafter pair with its cuts, gussets, collar tie and loft

    A-frame sectionthe rafter pair with its cuts, gussets, collar tie and loft

  • A-frame cabin plans with loft: sample sheet gable, studs, the door and the windows with rough openings and headers

    Front gablestuds, the door and the windows with rough openings and headers

  • A-frame cabin plans with loft: sample sheet cut list, every piece by mark and the boards to buy

    Cut listevery piece by mark and the boards to buy

  • A-frame cabin plans with loft: sample sheet shopping, store prices with the date we read them

    Shopping liststore prices with the date we read them

Start with the width and the angle, because they decide everything else. If you want to sleep in the loft, begin at 18 ft wide or more and 60 degrees. If a bed is not the goal, any width works for a storage loft, and the designer will say how much of it you can stand in. The angle is in A-frame roof pitch, the room under the loft in A-frame cabin interior, and the two sizes on either side of the sleeping loft line have their own plans: the 20x20 A-frame cabin with a sleeping loft and the 16x16 A-frame cabin with a storage loft.

Carpenter's tip

Ask your town first

Whether a loft counts as a bedroom is a local decision. Ask the building department whether it adopted Appendix AQ and whether it accepts a ship ladder before you draw a bed into the loft.

Depends on where you build

Your town decides

Not every town adopts the tiny house appendix or accepts a ladder to a sleeping loft, and some add their own limits. Call the building department with your size and use before you order lumber.

Our plan comes with a guarantee: read the plan guarantee before you buy.

Sources

Every number in this guide that does not come from our own cabin designer or our own price reads was checked against these 3 documents, numbered in the order the text first cites them and read between Oct 8, 2026 and Nov 20, 2026. 2 are code books and official pages; 1 is a secondary source (secondary pages), marked, used only where no code book or official page gives a number.

Our own data, not an outside source: our cabin designer run on November 20, 2026 at four widths and three angles, for the loft area, the loft verdict and the materials list.

  1. 1International Code Council2021 International Residential Code, chapters 1 and 3 and Appendix AQ (tiny houses) (2021)
  2. 2City of Seattle2021 Seattle Residential Code, Appendix AQ, tiny houses (model IRC text shown where Seattle amended it) (2021)
  3. 3The Home DepotSecondary sourceShelf prices, Hamilton Mill store, lumber, plywood, hardware, concrete and roofing (2026)

Questions

Anything else? Write to us or browse every guide.

Questions people ask

Yes, if the loft meets the code for a sleeping space. On a cabin of 400 sq ft or less, the IRC tiny house appendix asks for 35 sq ft of loft floor with 3 ft of headroom, 5 ft in each direction, and an escape opening. Above 400 sq ft, the full habitable rules apply.

It can be, but your town decides. The 2021 IRC lets a loft serve as sleeping space under Appendix AQ or as a habitable attic under the main code, and each has size, stair and escape rules. Not every town adopts Appendix AQ, so call the building department before you design around a bed up there.

At the peak, as tall as the roof gives you, and the code counts only part of it. Appendix AQ counts loft floor with 3 ft or more of headroom. A habitable attic counts floor with 5 ft or more, and half of the required area needs 7 ft. Steeper and wider cabins give far more of both.

Most small A-frames use a ship ladder: steep, narrow steps with a handrail on both sides. The IRC allows one for a loft of 200 sq ft or less and in the tiny house appendix. A habitable loft over 400 sq ft on a larger cabin is reached by a stairway, and the roof rarely leaves room for one.

Somewhat, not dramatically. In our designer, a 20x20 A-frame at 60 degrees goes from about $12,805 in materials with no loft to about $13,859 with an 8 ft storage loft and $14,228 with a sleeping loft, which adds the escape window. These are shell materials only, at Home Depot prices from October 8, 2026.