Black Friday
00Hrs
:
00Min
:
00Sec
Claim 20% OFF, Use:Apply now
←Back to Blog

Stair Calculator: Rise, Run, Stringer Length and a Live Code Check

Stair Calculator: Rise, Run, Stringer Length and a Live Code Check

To calculate stairs, divide the total rise by 7.5 and round up to get the number of risers, divide the total rise by that number to get the exact riser height, then multiply the tread run by one fewer than the risers to get the total run. A 9 ft (108 in) floor to floor height works out to 15 risers of 7 3/16 in, 14 treads and 12 ft 3 in of run with 10½ in treads. The calculator below does that division, draws the stair to scale and checks every result against the residential or commercial code limits while you type.

Our articles are still written by humans!

Get human written articles in your Google feed.

Add as preferred source MeltFlex, opens in a new window

Every limit in it was read on the publisher’s own page on 11 November 2026 and is listed under Sources. Every number in the tables of this guide was printed by the same code the calculator runs. It is a layout tool, not an engineer or a building inspector: local amendments are common, so confirm the numbers with your building department before you cut a stringer.

Stair calculator with diagram: enter the total rise in inches

Interactive calculator

Loading… if it does not appear, refresh the page.

FreeUpload photo · freeRedesign my staircase for freeUpload a photo of your stairs and MeltFlex redesigns the treads, railing and finishes on the staircase you have. Your first AI design is free, no card needed.

How Do You Calculate Stairs?

Four steps: measure the total rise, divide it into equal risers, pick a tread run, and multiply out the total run. The whole method rests on one idea, which is that every riser in a flight must be the same height, so you never choose a riser and stack it up. You choose a count and divide.

  1. Measure the total rise. Finished floor to finished floor, or the ground where the stair will land to the top of the deck boards. Example: 108 in.
  2. Find the number of risers. Divide by the tallest riser you are willing to climb and round up. 108 ÷ 7.5 = 14.4, so 15 risers.
  3. Find the exact riser. 108 ÷ 15 = 7.2 in, which is 7 3/16 in on a tape.
  4. Find the total run. When the upper floor is the last step there is one tread fewer than risers: 14 treads × 10.5 in = 147 in, or 12 ft 3 in.
Stair section drawn to scale for a 9 ft floor to floor height: 15 risers of 7 3/16 inches, 14 treads of 10 and a half inches, total run 12 ft 3 in, a 34.4 degree slope, a cut stringer, and the floor opening of 11 ft 2 3/16 in needed for 6 ft 8 in of headroom
The default flight in the calculator. The dotted line is the nosing line that headroom and handrail height are measured from.

Rounding up is not the only legal answer. Adding or dropping one riser trades steepness for floor space, and the table shows what each choice costs on the same 108 in rise.

RisersRiser heightTotal run (10½ in treads)Angle2R + TUnder the IRC
138 5/16 in10 ft 6 in38.4°27.12 inFails, over 7¾ in
147 11/16 in11 ft 4½ in36.3°25.93 inPasses, steep
157 3/16 in12 ft 3 in34.4°24.90 inPasses, comfortable
166¾ in13 ft 1½ in32.7°24.00 inPasses, gentle
176 3/8 in14 ft31.2°23.21 inPasses, feels shallow

Fourteen risers is what you get if you divide by the code maximum instead of a comfortable target. It is legal by a sixteenth of an inch and saves 10½ in of floor, which is why so many builder stairs feel steep.

How Many Stairs for an 8, 9 or 10 ft Floor Height?

A typical 8 ft story needs 15 risers, a 9 ft story 16 and a 10 ft story 18, because the stair climbs the floor structure as well as the ceiling height. An 8 ft wall framed with precut studs is 97 1/8 in tall, and a 2x10 floor with ¾ in subfloor adds 10 in, so the real rise is about 107 1/8 in, not 96. Those three rows are marked in the table. Measure your own: joist depth and finishes vary.

Total riseRisersRiser heightTreadsTotal runAngle2x12 stringer board
96 in (8 ft)137 3/8 in1210 ft 6 in35.1°14 ft
100 in147 1/8 in1311 ft 4½ in34.2°16 ft
104 in147 7/16 in1311 ft 4½ in35.3°16 ft
107 1/8 in (8 ft walls)157 1/8 in1412 ft 3 in34.2°16 ft
108 in (9 ft)157 3/16 in1412 ft 3 in34.4°16 ft
112 in157 7/16 in1412 ft 3 in35.4°18 ft
116 in167¼ in1513 ft 1½ in34.6°18 ft
119 1/8 in (9 ft walls)167 7/16 in1513 ft 1½ in35.3°18 ft
120 in (10 ft)167½ in1513 ft 1½ in35.5°18 ft
126 in177 7/16 in1614 ft35.2°20 ft
131 1/8 in (10 ft walls)187 5/16 in1714 ft 10½ in34.8°20 ft

Target riser 7½ in, tread run 10½ in, upper floor as the last step. Printed by the calculator’s own code. Ceiling heights themselves are covered in our standard ceiling height guide.

Straight staircase with dark wood treads and a black steel loop balustrade against a white paneled wall with built-in drawers, seen from above over a herringbone wood floor
A straight flight takes 12 to 15 ft of floor in a normal house. Render from our gallery, shown for scale, not built from this calculator.

How Many Steps Does a 2, 3, 4 or 6 ft Deck Need?

Divide the height from the landing spot to the top of the deck boards by 7.5 and round up: a 2 ft deck needs 4 risers, 3 ft needs 5, 4 ft needs 7 and 6 ft needs 10. The step on the deck itself counts as the last riser, so the stringer carries one tread fewer than that.

Deck heightRisersRiser heightTreads on the stringerTotal run2x12 board
14 in27 in110½ in8 ft
21 in37 in21 ft 9 in8 ft
24 in (2 ft)46 in32 ft 7½ in8 ft
30 in47½ in32 ft 7½ in8 ft
36 in (3 ft)57 3/16 in43 ft 6 in8 ft
48 in (4 ft)76 7/8 in65 ft 3 in8 ft
60 in (5 ft)87½ in76 ft 1½ in10 ft
72 in (6 ft)107 3/16 in97 ft 10½ in12 ft
96 in (8 ft)137 3/8 in1210 ft 6 in14 ft

Three things are specific to decks. First, measure the rise where the stair will land, not straight down from the deck edge: on a yard that falls away, the landing spot can be several inches lower than the ground under the rim, and the calculator can only be as right as that number. Second, the American Wood Council’s deck guide (DCA 6) limits a cut stringer to a 6 ft horizontal span, so a 5 ft deck is already where the stringers need a post or beam under them. Third, a 2 ft deck is awkward: three risers of 8 in fail the 7¾ in limit, so you end up with four shallow 6 in ones.

What Rise and Run Does Code Allow?

In a house, a riser may be no taller than 7¾ in and a tread no shallower than 10 in; in a commercial building the limits are 4 to 7 in and 11 in. The residential rule reads, in the 2021 International Residential Code: “The riser height shall be not more than 7 3/4 inches (196 mm)” and “The tread depth shall be not less than 10 inches (254 mm).” The same section adds the rule that fails more stairs than the maximum does: “The greatest riser height within any flight of stairs shall not exceed the smallest by more than 3/8 inch (9.5 mm).”

LimitHouse (IRC)Commercial (IBC 2024)Accessible (ADA 2010)Workplace (OSHA)
Maximum riser7¾ in7 in7 in9.5 in
Minimum risernone4 in4 innone
Minimum tread10 in11 in11 in9.5 in
Riser and tread variation in a flight3/8 in3/8 inmust be uniformnot checked
Maximum rise before a landing12 ft 7 in12 ftnot checkednot checked
Minimum width36 inset by occupant loadnot checked22 in
Headroom6 ft 8 innot checkednot checked6 ft 8 in
SectionR311.7 (2021), R318.7 (2024)1011.5.2, 1011.8504.21910.25(c)

One thing changed in 2024 that trips people up: the numbers did not move, the section numbers did. Stairways moved from R311.7 to R318.7, handrail height to R320.2 and guards from R312.1.1 to R321.1.1, with the sentences on riser, tread, headroom and flight rise word for word the same. If your inspector cites R318.7.5.1 and your plans say R311.7.5.1, you are both talking about the same 7¾ in. “Not checked” in the table means we did not read that item on the publisher’s page, not that no rule exists.

Why so strict about three eighths of an inch? Because people fall on the step that is different. A study of 23 years of US emergency department data found “an estimated 24,760,843 patients were treated in emergency departments for a stair-related injury during the 23-year study period, averaging 1,076,558 patients annually” (Blazewick and colleagues, American Journal of Emergency Medicine, 2018). The study does not say how many of those were caused by uneven risers, and we are not claiming it does.

Handrails, guards, winders and spiral stairs have their own numbers, which live in our stair dimensions and code guide: handrail height, landings and winders and spiral stairs.

Oak staircase beside a white kitchen: a closed lower flight with a solid oak balustrade and an open riser upper flight rising under a skylight
Open risers are legal in a house, but where they are more than 30 in above the floor the gap may not pass a 4 in sphere. Render from our gallery.

How Long a Stringer Do You Need, and Is a 2x12 Enough?

Multiply the diagonal of one step by the number of risers and buy the next stock length up: a 108 in rise with 15 risers needs 15 ft 11 in of board, so a 16 ft 2x12. The diagonal of one step is the square root of riser squared plus tread squared, 12.73 in for a 7.2 by 10.5 in step. Counting one diagonal per riser leaves room for the plumb cut at the top and the level cut at the bottom.

Whether a 2x12 is deep enough is a separate question, and it is the one most calculators skip. Every notch removes wood, and what carries the load is the uncut strip left under the notches, which carpenters call the throat. DCA 6 dimensions it as “5″ min.” and says “All stringers shall be a minimum of 2x12.” A 2x12 is actually 11¼ in deep, so the notch can take at most 6¼ in.

Cut stair stringer drawing showing a 7 3/16 by 10 and a half inch notch in a 2x12: the notch removes 5 15/16 inches measured square to the board edge and leaves 5 5/16 inches of throat against a 5 inch minimum
The dashed line is the uncut edge of the board. Notch depth is measured square to that edge, not along the riser.
Throat left in a 2x127 in riser7¼ in riser7½ in riser7¾ in riser
10 in tread5.52 in5.38 in5.25 in5.12 in
10½ in tread5.43 in5.28 in5.15 in5.01 in
11 in tread5.34 in5.20 in5.05 in4.91 in
11¼ in tread5.31 in5.16 in5.01 in4.87 in

Two things came out of running that table. Our 5.12 in for a 7¾ by 10 in step matches the guide’s own commentary, which says its cut stringers “were analyzed with 5.1″ depth which is based on 7.75:10 rise to run ratio”, so the geometry is the same one the engineers used. And a generous tread makes the stringer weaker, not stronger: at the maximum riser, an 11 in tread already drops the throat under 5 in. The calculator flags that case. A 2x10 never keeps 5 in on any code-legal step.

The same guide sets the spacing and the span: “If only cut stringers are used, a minimum of three are required”, at “a maximum spacing of 18″ on center”, and a cut stringer spans no more than 6 ft 0 in horizontally where a solid one spans 13 ft 3 in. That is three stringers for a 36 in stair and four for a 48 in one. One honest caveat: DCA 6 is a deck guide and describes itself as recommended practice. The IRC itself never mentions stringers, so for an interior stair your inspector or engineer has the final word.

Thick solid oak treads cantilevered from an exposed brick wall behind a black steel rod screen, with plants in a gravel bed below
Tread thickness is a layout number, not a finish detail: these treads are several inches thick, and the first riser has to absorb all of it. Render from our gallery.

Why Is the First Riser Cut Shorter?

Because the tread sits on top of the stringer: the bottom of the stringer has to be cut shorter by the tread thickness, or the first step ends up that much taller than the rest. With 7 3/16 in risers and 1 in treads, the first riser on the stringer is cut at 6 3/16 in. Every other cut is the full 7 3/16 in, because each one has a tread below it and a tread above it and the two cancel.

Drawing of the bottom of a cut stair stringer: the first riser is cut at 6 3/16 inches so that with a 1 inch tread on top the finished riser is 7 3/16 inches, while every other riser cut is the full 7 3/16 inches
Forget this and the bottom step is 1 in taller than the others, which is nearly three times the 3/8 in the code allows.

Is the Top Step Flush or One Step Down?

On most stairs the upper floor is the last step, so the top tread sits one riser below it and there is one tread fewer than risers. The alternative is a top tread level with the floor, common on decks where the stringers hang from the face of the rim. It adds one tread, makes the stair one tread longer and changes where the stringer meets the framing.

Two stair sections side by side: with the top tread one step down, 15 risers need 14 treads and 12 ft 3 in of run; with the top tread flush with the floor, 15 risers need 15 treads and 13 ft 1 and a half inches of run
Same rise, same riser, 10½ in more run. Mixing the two up leaves the stringer exactly one riser off.

Why Measure Finished Floor to Finished Floor?

Because flooring that goes down after the stair is built changes the first or last riser and nothing else. Lay out 15 risers of 7.2 in on a 108 in rise, then put ¾ in of hardwood on the upper floor only, and the top riser becomes 7.95 in. That is over the 7¾ in maximum and twice the 3/8 in tolerance in one move.

The calculator has two fields for this. Enter flooring still to be laid at the top and it adds that to the rise; enter flooring still to go at the bottom and it subtracts it. The same thickness top and bottom cancels out, which is why a house that gets the same floor on both levels is forgiving and a basement stair landing on bare slab is not.

White staircase with oak treads and white balusters, cabinets built under the flight, a chalkboard mural on the wall and a checkered tile floor
Tile at the bottom and timber at the top: two different finish thicknesses, so the rise is only known once both are chosen. Render from our gallery.

What Rise and Run Feel Comfortable?

Aim for two risers plus one tread adding up to 24 to 25 in, which puts most house stairs at a 7 to 7½ in riser with a 10 to 11 in tread. The Journal of Light Construction’s stair field guide states the three shop rules together: “The sum of two risers and one tread equals 24 to 25 in.”, “The sum of one riser and one tread equals 17 to 18 in.” and “Riser height multiplied by tread width should equal 70 to 75 in.”

The first rule is the old one. It is usually credited to the French architect François Blondel, whose Cours d’architecture appeared between 1675 and 1683, and it tied the step to the length of a walking stride. It has also been law: New York City’s 1968 Building Code required that “The sum of two risers plus one tread exclusive of nosing shall be not less than twenty-four nor more than twenty-five and one-half inches.” Today’s IRC and IBC contain no such formula, so it is a comfort check, not a code check, and the calculator labels it that way.

The practical point: a stair built to the code limits, 7¾ by 10 in, scores 25.5 and feels steep. The default in the calculator, 7 3/16 by 10½ in, scores 24.9.

Oak staircase built into a full wall of open shelving boxes, with tall risers and deep box treads under a skylight
Tall risers save floor area and cost comfort. A stair like this looks sculptural and climbs like a ladder. Render from our gallery.

How Long Must the Stairwell Opening Be?

Add the depth of the floor above to 80 in, multiply by the tread run and divide by the riser: for a 7.2 by 10.5 in stair under a 12 in floor, the opening must run 11 ft 2 3/16 in back from the top nosing. Headroom is 6 ft 8 in, “measured vertically from the sloped line adjoining the tread nosing”, so the question is simply how far down the flight you have to walk before the ceiling above you is 80 in clear.

Floor above (joists, subfloor, ceiling)Minimum opening for 6 ft 8 in
10 in (2x8 floor)10 ft 11¼ in
12 in (2x10 floor)11 ft 2 3/16 in
14 in (2x12 floor)11 ft 5 1/16 in

A steeper stair needs a shorter opening, which is the other reason builder stairs are steep. This formula is plain geometry and it is ours, not a quotation from the code, so the calculator prints it as a minimum to check on site, not a framing dimension. If you are still at the drawing stage, our guide to drawing a floor plan shows where a stair opening goes on the plan and floor plan symbols shows how it is drawn.

When Do Stairs Need a Landing?

In a house, when one flight would climb more than 12 ft 7 in; in a commercial building, more than 12 ft. The residential sentence is “A flight of stairs shall not have a vertical rise greater than 12 feet 7 inches (3835 mm) between floor levels or landings.” The landing itself must be at least as wide as the stair and 36 in deep in the direction of travel.

This number has moved, and old figures are still in circulation. The 2015 IRC said 147 in, the 2018 edition raised it to 151 in, and 2021 rewrote the same height as 12 ft 7 in. The deck guide quoted above still says 12 ft 0 in, because it is based on the 2015 code. If a calculator or a blog tells you 147 in, it is working from a code two editions old. Above the limit, the calculator tells you to split the flight; it does not lay out the two flights for you yet.

Long flight of floating stone treads with a glass guard running along a rough stone wall in a double height hall, with a cactus garden beneath
A flight this long is close to the height where a landing becomes mandatory. Render from our gallery.

Which Mistakes Ruin a Stair Layout?

The same six, over and over, and five of them are measuring mistakes, not cutting mistakes. We collected them from builder forum threads and two Journal of Light Construction articles listed under Sources.

  1. The bottom of the stringer is not dropped by the tread thickness. The first step is too tall. See the first riser.
  2. The rise is measured subfloor to subfloor. Finish flooring then shifts the top or bottom riser by ¾ in or more.
  3. Deck rise is measured at the deck edge. The stair lands several feet out, where the ground is lower or higher.
  4. The riser is rounded. Cutting 7.96 in as 8 in adds up to more than half an inch over 14 steps. Use the exact decimal for layout and step off cumulative marks.
  5. Flush and one step down are confused. The stringer comes out exactly one riser too long or too short.
  6. The notches are overcut. A circular saw run past the corner eats the throat. Stop short and finish with a handsaw.

How Does This Compare With Other Stair Calculators?

On 11 November 2026 we read through eight stair calculators that rank for this search, and none of them checks your result live against a named code edition. They are good at the division. The gaps are in what happens after it. We read each tool’s inputs, labels and explanatory text; we did not test their arithmetic, and one page (InspectUSA) would not load for us, so it is left out.

CalculatorCode it namesLive pass or failThroat checkFinish floor inputs2R + T
This oneIRC 2021 and 2024, IBC 2024Yes, per valueYesTop and bottomYes
myCarpentry2024 IRC, in the textGeneral warning onlyIn the textTread onlyNo
Calculator.netNone namedNoNoTread onlyNo
Decks.comNoneNoNoTwo tread presetsNo
BlocklayerNoneNoNoFloor, tread and riserNo
Omni Calculator2015 IRC, in the textNoNoBottom step onlyIn the text
FortressNoneNoNot applicable (steel)Tread onlyNo
RedX straight stairIRC, no editionNoIn the textTread onlyYes

Where the others are better, and you should use them: Blocklayer prints running mark-out points along the stringer and works in metric, Calculator.net and Omni take metric input, and RedX builds L-shaped stairs with a landing and a cut list. Ours does none of those yet. It is inches only, straight flights only, and it gives you one step’s numbers to set on a framing square, not a cumulative mark-out.

Can You See the Stair Before You Build It?

The calculator settles the geometry. It says nothing about how the stair will look in the room, and that is where most of the second thoughts come from: open or closed risers, timber or painted, glass or balusters. If you have a photo of the hall, MeltFlex AI stairs design redraws the staircase in it so you can compare finishes on your own space, and our staircase makeover guide walks through it. A picture is not a drawing, though: the render shows style, not dimensions, so the numbers still come from here. One practical check before you commit to a narrow flight: run the largest thing you own through our will it fit calculator, and read what to do when a box spring will not go up the stairs.

How This Calculator Works, and What We Could Not Verify

  • Risers = total rise divided by your target riser, rounded up. Riser = total rise divided by that count, kept as an exact decimal and shown to the nearest 1/16 in.
  • Total run = treads times tread run. Treads are risers minus one, or equal to risers when the top tread is flush.
  • Stringer length = one step diagonal per riser, rounded up to an even stock length. It is a buying length, not a cut length.
  • Throat = 11¼ in minus riser times tread divided by the step diagonal.
  • Opening = (80 in plus floor depth) times tread divided by riser. Our geometry.
  • Tests: 37 assertions run against the maths, including the code edges (7.75 in passes, a hair over fails; 151 in is one flight, 152 is two).

What we could not verify, or deliberately left out:

  • We did not read Blondel’s original text. The 24 to 25 in band is a modern inch version of his rule, quoted from the JLC guide.
  • We found no primary source for the 70 to 75 in product rule beyond trade guides.
  • The IBC column was read in the 2024 edition on the ICC’s site. The 2021 text we saw only on a third-party copy.
  • The 5 in throat, the 6 ft span and the 18 in spacing come from a deck guide based on the 2015 IRC. They are sound practice, not code, for an interior stair.
  • The stair injury figure covers 1990 to 2012 and all causes. Nothing newer of the same quality turned up.
  • No winders, spirals, L or U shapes, no metric, no stringer mark-out, no handrail or baluster layout. State and city amendments are not modeled.

Stair Calculator FAQ

How do I calculate the number of stairs I need?

Divide the total rise in inches by 7.5 and round up to a whole number: that is the number of risers. Divide the total rise by that number for the exact riser height. A 108 inch rise gives 14.4, so 15 risers of 7.2 inches (7 3/16). The number of treads is one fewer than the risers when the upper floor acts as the last step, so 14 treads, and with 10.5 inch treads the stair runs 147 inches, or 12 ft 3 in.

How many stairs do I need for a 9 foot ceiling?

Usually 16 risers, not 15, because the stair climbs the floor structure as well as the ceiling. A 9 ft wall framed with precut studs is about 109 1/8 inches, and a 2x10 floor with subfloor adds 10 inches, so the real floor to floor rise is about 119 1/8 inches: 16 risers of 7 7/16 inches and 15 treads. If your finished floor to finished floor height is exactly 108 inches, it is 15 risers of 7 3/16 inches.

How long should a stair stringer be?

Multiply the diagonal of one step by the number of risers, then buy the next stock length up. One step of 7.2 by 10.5 inches has a diagonal of 12.73 inches, so 15 risers need 15 ft 11 in of board and you buy a 16 ft 2x12. For a 4 ft deck with 7 risers an 8 ft board is enough. The American Wood Council deck guide limits a cut stringer to a 6 ft horizontal span between supports.

Can I use a 2x10 for stair stringers?

Not for a cut (notched) stringer on a normal stair. The American Wood Council deck guide DCA 6 says all stringers shall be a minimum of 2x12 and shows at least 5 inches of uncut wood below the notches. A 2x10 is 9 1/4 inches deep, and a code-legal step removes about 6 inches, leaving roughly 3 1/4 to 3 1/2 inches. Even a 2x12 drops under 5 inches when a 7 3/4 inch riser is paired with an 11 inch tread.

What is the maximum rise and minimum run for stairs?

In a house, the International Residential Code allows a riser of no more than 7 3/4 inches and a tread of no less than 10 inches, and the tallest and shortest riser in a flight may differ by no more than 3/8 inch. The numbers are the same in the 2021 edition (section R311.7.5) and the 2024 edition (renumbered R318.7.5). Commercial stairs under the 2024 International Building Code are limited to a 4 to 7 inch riser and an 11 inch minimum tread. Local amendments are common.

How many steps do I need for a 4 foot deck?

Seven risers of 6 7/8 inches for a deck surface 48 inches above the spot where the stair lands. The deck itself is the last step, so the stringers carry six treads, and with 10.5 inch treads the stair reaches 5 ft 3 in out from the deck. Measure the height at the landing spot, not straight down from the deck edge, because sloping ground changes the answer.

Why is my first step a different height from the rest?

Almost always because the tread thickness was not taken off the bottom of the stringer, or because flooring was added to one level after the stair was laid out. The first riser on the stringer has to be cut shorter than the others by the thickness of the tread, for example 6 3/16 inches where the rest are 7 3/16 with 1 inch treads. Code allows only 3/8 inch between the tallest and shortest riser in a flight.

What is the 2R + T rule for stairs?

A comfort check: two risers plus one tread should add up to 24 to 25 inches, which matches a normal walking stride. A 7 3/16 inch riser with a 10.5 inch tread scores 24.9. A stair built to the residential code limits, 7 3/4 by 10 inches, scores 25.5 and feels steep. The rule is credited to the French architect Francois Blondel in the late 1600s and is not part of the current IRC or IBC.

Sources

All read on 11 November 2026. Quotations are verbatim from the page linked.

Audio version by MeltFlex AI

Listen to this article

Prefer to listen? This narrated video reads the full article, Stair Calculator: Rise, Run, Stringer Length and a Live Code Check, in about 38 minutes. Every section is a chapter, so you can jump straight to the part you need while you browse rooms or sketch a layout.

Chapters (17)

More narrated articles on AI Interior Design MeltFlex

More articles

Stair Dimensions: Rise, Run, Width and Handrail Height

15 min read

Standard Ceiling Height: 8, 9 and 10 Foot Rooms Compared

13 min read