Skip to main content
You give the start point, the direction and the width of a stair. Floorkit calculates the number of steps from the storey height and makes each step the same.

Before you start

You have a session from Start a building.

Write the stair

This straight stair starts at [1, 1] and is 1 metre wide. It climbs the full storey height.

Add it to the storey

A stair is an entry in the stairs list of the storey where it starts.
The add-element command adds the stair to the list, and the session builds it. You keep the session and its undo history. The command rejects an id that the list has.

Layouts

For an L or a U layout, turnDirection sets the turn ('left' or 'right') and landingDepth sets the depth of the landing.

Fan, curved and spiral stairs

A FAN, CURVED or SPIRAL stair turns round a centre. Each tread is a flat wedge between the inner edge and the outer edge, and every tread turns the same angle.
  • origin is the start of the walking line, in the middle of the first tread. rotation sets the direction of the first step.
  • turnDirection sets which side the centre is on, walking up.
  • innerRadius is the radius of the inner edge in metres. The default is 1 metre. The outer edge is innerRadius + width.
  • sweepAngle is the angle that the stair turns, in degrees. The default is 90. A FAN or a CURVED stair turns at most 360 degrees. A SPIRAL stair can turn more.
  • The walking line is in the middle of the width. The going of a tread is measured on the walking line, and Floorkit checks that going as it checks treadDepth on a straight stair. treadDepth does not change these layouts.
  • With structureDepth, each tread is a block that reaches structureDepth below the tread under it, so the underside steps. The underside is not a smooth curve.
  • These layouts have no size grips in the editors. Change the fields to change the size.

Winder stairs

A WINDER stair has two flights at a quarter turn. In the corner, winderCount wedge treads take the place of the landing. All of them meet at the inner corner. The default is 3 winders.
A winder stair needs at least winderCount risers. With fewer, it is a straight stair and its layout warnings say so. risersBeforeTurn sets the risers of the first flight, from 0 to the risers left after the winders. The second flight gets the rest. It can get none, so the winders end at the top. Without it, the first flight gets half of the rest, rounded up. winderTurnDeg: 180 turns the winders back, so the second flight runs back beside the first one, as in a U stair. Without it, the winders make a quarter turn. For example, winderCount: 6, risersBeforeTurn: 8, winderTurnDeg: 180 on a stair of 14 risers climbs 8 risers straight, then turns back on 6 winders to the top. On an L_SHAPE or U_SHAPE stair, risersBeforeTurn sets the risers of the first flight up to and including the landing, from 1 to one less than all the risers. The second flight climbs the rest, so the two flights can differ in length, as the runs of a stair do in Revit and the flights in Archicad. Without it, the first flight gets half of the risers, rounded up. For example, a U stair of 12 risers with risersBeforeTurn: 7 climbs 7 risers to the landing and 5 after it, so its upper flight is one going shorter than its lower flight. On a U_SHAPE stair, flightGap is the clear gap between the two flights, 0 or more metres; without it the flights stand 50 mm apart. The half landing spans both flights and the gap, so a partition or a well between the flights has room. For example, width: 0.705, flightGap: 0.186 sets the second flight 0.891 m from the first, centre to centre.

End with a riser

By default the final flight draws a top tread at the arrival level, so the stair runs one going past the edge of the floor it arrives at. endWithRiser: true makes the arrival floor the top tread, as Revit’s End with Riser and Archicad’s Finish with Riser do: the final flight has one tread fewer than its risers, and its last riser stands at the floor’s edge. The riser count and the riser height do not change. The plan, the 3D flights, a section, a hosted railing and a linked slab hole all stop one going earlier. For example, a straight stair of 17 risers at 280 mm goings runs 16 goings, 4.48 m, instead of 4.76 m. A stair that ends with a riser needs at least two risers, and a WINDER stair at least one riser after the winders; the model refuses others with bad-end-with-riser.

Check a stair against a rule

rules holds the limits a stair is checked against, as data: minRiser, maxRiser, minGoing and maxGoing in metres, minStep and maxStep for twice the rise plus the going, and maxPitch in degrees, each optional, and a name the warning quotes. The stair still builds when it breaks one; validateBuildingModel warns stair-rule-breach at the limit’s path, as Revit’s stair calculator and Archicad’s stair rules do. The rise is the solved riser (the total rise over the riser count), the going is treadDepth (on a radial stair, the chord of a step on its walkline), and the pitch is the angle of the rise over the going. stairRuleBreaches(stair, storey) gives the same breaches as data. A stair with rules is not also warned shallow-tread: its rule says what going is too short. STAIR_RULE_SETS.ukPrivate is Approved Document K (2013 edition, England) for a private stair: rise 150 to 220 mm, going 220 to 300 mm (Table 1.1), pitch at most 42° (its note 1) and 2R + G from 550 to 700 mm. For example, a stair of 12 risers over 2.65 m on 220 mm goings warns twice: its 220.8 mm rise is over 220 mm, and its 45.1° pitch is over 42°. With 13 risers (203.8 mm) the pitch keeps to 42° only on a going of at least 226.4 mm, so 227 mm in whole millimetres.

The plan symbol

A plan draws each stair of its storey with:
  • the outline of each flight and each landing,
  • one nosing line for each tread,
  • the walking line, with a circle at the start and an arrow at the top,
  • the word UP beside the start circle,
  • a break line where the plan cuts the stair.
The UP word is 2.5 mm high on the sheet. It takes the nearest place by the start of the walking line that is clear of every line and label of the plan. If there is no clear place, the word prints on its own stair over a paper-coloured box. This can happen at 1:100, where a going is narrower than the word. The box hides the stair’s lines under the word, as a cut wall hides what is under it. The box never covers another element. If the stair has no such place either, the plan leaves the word out and warns. The word DN on the upper plan follows the same rule.

Set the parts of the symbol

The plan view’s stairSymbol sets how the stair symbols of that plan draw. Each field you leave out keeps the symbol above.
  • aboveCut: 'dashed' (the default), 'continuous' or 'hidden'. 'continuous' draws the flight above the cut solid, as a seen flight, inside its stair well. 'hidden' draws nothing above the cut, and the arrow, if the stair has one, moves to the break line and points up the flight.
  • breakLine: 'single' (the default), 'double' for two parallel break lines either side of the cut, a tenth of the stair width apart, or 'none'. A break line ends at the two sides of the flight. A stair with showBreakLine: false draws no break line in any case.
  • walkline, startMark and arrow: false leaves out the walking line, the start circle or the arrow. The words still take their place by the start and the top of the walking line, and the stair still keeps to its stair well.
  • words: { up: 'up', down: 'down' } writes your own words in place of UP and DN, and 'none' writes no words. Each word must have text.
  • upperArrow: how the arrow of a lower stair points on the plan of the storey above. 'down' (the default) points down the flight, to the break line, with the start circle and DN at the top, where the walk down starts. 'up' points up the flight to the top, as on the stair’s own plan and in ISO 7519, with the start circle at the break line and no word, since DN would say the opposite of the arrow.
  • upperFlights: how much of a lower stair the plan of the storey above draws. 'above-cut' (the default) draws the part above the stair’s own plan cut, from the break line. 'whole' draws the whole stair seen through the well: every flight and landing, the whole walking line down to the foot, and no break line.
For example, stairSymbol: { aboveCut: 'continuous', breakLine: 'none', words: { up: 'up', down: 'down' } } draws every tread solid with no break line and writes up and down. Without stairSymbol a plan draws as before.

Set the symbol of one stair

A stair’s own planSymbol sets aboveCut, walkline, startMark, arrow and words for that stair on every plan, whatever the view’s stairSymbol sets. The values are the same as in stairSymbol. Each field you leave out keeps the view’s setting. For example, front steps with planSymbol: { walkline: false, startMark: false, arrow: false, words: 'none' } draw only their outline and treads, while the main stair of the same plan keeps the view’s symbol. A stair’s own planCutHeight is the height in metres above the stair’s base at which every plan with a cut cuts that stair, in place of the plan’s cutHeightAboveStorey. The rest of the plan keeps its cut. For example, a winding stair with totalRise: 2.85 and riserHeight: 2.85 / 13 and maxRiserHeight: 0.22, so 13 risers, 5 before 6 winders, with planCutHeight: 2.5 and planSymbol: { aboveCut: 'hidden' } draws its 5 treads and its 6 winders and nothing after them, on a plan that cuts at 1.2 m. The plan of the storey above still draws the stair above that plan’s own cut. Without planCutHeight the stair cuts with the plan. A railing hosted on the stair still splits at the plan’s cut, not at planCutHeight. An unknown field or a wrong value in planSymbol is refused with its path. A planCutHeight that is not a positive number is refused with its path.

Against the cut

A plan cuts its storey at cutHeightAboveStorey metres above the storey. The parts of a stair below the cut draw solid. The treads, the landings and the walking line above the cut draw thin and dashed. A railing over them is dashed too. For example, a straight stair of 17 risers on a 3.0 m storey, cut at 1.2 m, has 11 of its 17 treads above the cut: they draw dashed, and the other 6 draw solid. A cut above the stair draws all of it solid, with no break line. To hide the parts above the cut, set hideStairAboveCut on the plan view. The break line and the treads below the cut stay. When the view also sets stairSymbol.aboveCut, aboveCut decides how the stair draws above the cut.

On the upper plan

The plan of the storey above draws the part of the stair that is above the cut of the stair’s own storey, at the same cutHeightAboveStorey. It draws those treads and landings, the walking line, the break line and the walk down: a circle and the word DN at the top of the walking line, and the arrow at the break line, pointing down the flight. stairSymbol.upperArrow: 'up' points the arrow up to the top instead and writes no word. You cannot select these lines on the upper plan: select the stair on its own plan. A stair whose top does not reach the storey above draws nothing on the upper plan. Nothing is copied: the building has one stair, one 3D stair and one IFC stair. When a storey has its own stair over a lower stair, or over a demolished stair on a proposed plan, the plan draws only the flight on top. The lines of the lower or demolished stair under that flight are left out, so each flight shows one walking line. A demolished stair hides nothing.

A stair with a waist

Each flight of a stair is the treads on a sloped slab, the waist, and each landing is a slab. The space under the stair is free in 3D and in a section. structureDepth sets the depth of the waist; without it, the waist is 0.15 m under the throat of the steps (for 17 risers over 3.0 m and 0.28 m treads, about 0.299 m), never more than the total rise.
  • structureDepth is in metres, square to the line through the nosings. The underside of the waist is parallel to that line.
  • A landing is a slab under its top. Its underside is flush with the underside of the waist that arrives at it, so the flight and the landing join without a step.
  • structureDepth must be more than the throat of the steps and not more than the total rise. The throat is the distance, square to the pitch, from the inner corner of a step to the line through the nosings: for 17 risers over 3.0 m and 0.28 m treads it is about 0.149 m. Another value is refused with its path and the value.
  • A straight flight of more than 200 steps builds as several bodies, one for each 200 steps, which together are the same waist.

A solid stair

solid: true builds a stair as a solid mass from each tread and landing down to its base, as a stair cast on the ground. A section cuts it as one stepped mass to the floor.
  • solid cannot be set together with structureDepth or treadThickness. Another value than true or false is refused with its path and the value.
  • A file saved before the default waist that wants its stairs solid sets solid: true on them.
Set footElevations: [left, right] on a solid stair to build it on falling ground. The values are in metres from the storey level, at the sides of the first flight when looking up the stair. The ground plane continues under the treads and landings while their walking surfaces stay level. Both foot heights can be equal for flat ground. The ground must clear each tread and landing.

Materials for a stair

Reference a material from the project’s material table using construction.finishes.structure.material. It supplies the stair’s usual finish. Board construction can use different tread and riser materials, and a stair with a landing can give it a separate landing material.
The material supplies the 3D solid color and the pattern, background and cut hatch in physical drawings. An unspecified material preserves the stair color and standard drawing style.

A timber stair of boards

With treadThickness, a stair is built of boards. Each step is a tread board under its walking surface and a riser board behind its front edge, each landing is a board, and nothing is under them. A section through the stair cuts only the stepped line of the boards; a seen flight shows its treads and risers.
  • treadThickness is in metres. A riser board goes from the underside of the tread below it to the underside of its own tread; the first one starts at the stair base.
  • Straight flights, winders, curved flights and landings all build as boards.
  • treadThickness must be positive and less than the riser height, and a stair cannot have both treadThickness and structureDepth. Another value is refused with its path and the value.

Edit in an editor

  • The panel fields of a stair (label, layout, turn, rotation, width, total rise, tread depth, max riser, landing depth, elevation, break line, colour) save in place as one undo step. Risers and riser height are read-only.
  • A field that changes the stair in plan also moves its linked slab hole, in the same undo step.

The slab hole

A stair can link to a hole in the floor slab above it. When you move or turn the stair, the hole moves and turns with it, in the same undo step. When you reshape the stair, the hole becomes the outline of the flights and landings, grown by margin on each side.
  • holeIndex is the index of the hole in profile.holes of the slab.
  • An edit that moves the hole outside its slab is refused. The error gives the path of the hole and the distance.
  • An edit of the slab that removes the linked hole, or moves it to another index, is refused. The error names the stair.
  • A hole drawn by hand keeps its shape until the stair changes. fit-stair-slab-hole makes it the stair’s outline grown by margin in one step, as a shaft opening is sized from its stair; a margin in the command is saved on the link.

Rules

  • origin is [x, z] in metres. It is the start of the walking line of the first flight.
  • rotation is in degrees, counter-clockwise when you look from above.
  • totalRise is the height that the stair climbs. The default is the storey height.
  • treadDepth is the depth of one step. The default is 0.28 metres.
  • Floorkit keeps each riser at maxRiserHeight or less. The default is 0.19 metres.
  • When the storey has a storey above it, the top of the stair should be at the elevation of that storey or of the stair’s own storey. When it is at neither (within 1 mm), validation warns stair-misses-storey. For example, outside steps with baseOffset: -0.58 and totalRise: 0.58 land on the floor of their storey. A stair on the top storey does not warn.
  • A stair that lands on neither, for example an outside stair up to a terrace, sets servesLanding: true. Validation then does not warn stair-misses-storey for it.
  • The slab that slabHole names should span the top of the stair: the top must be between the bottom and the top of that slab (within 1 mm). When it is not, validation warns slab-hole-level. The slab can be on any storey.
  • buildFromBuildingModel and BuildingSession.currentBuild report stair-slab-clash in warnings when a stair penetrates a slab of the same building, including material left around a hole. Edge and face contact is allowed, also where a stair stands a few hundred-millionths of a metre past its hole’s edge: a shared volume less than 0.1 mm thick is contact. For servesLanding: true, the last tread may embed in its own storey’s support at or below its walking surface. If the geometry check cannot complete for a pair, the build reports stair-slab-check-failed.
Floorkit makes the geometry of a stair. Check the stair against your local building code.

Next

Add a column

Add the structure.

Stair API

See each option of a stair.
Last modified on November 30, 2026