Will it get in?
Buying a sofa, a wardrobe or a mattress? Measure it, and the tight spot on the way in: a hallway corner, a door, or the stairs. You'll see whether it gets through, exactly how to carry it (flat, tilted or on its end), and the longest one that would.
The answer
That's for a box this size. A sofa may still manage where its box can't: legs often come off (enter the height without them), and movers use the gaps around arms and backs. See how it works.
Your numbers stay in this browser.
How it works
It treats the furniture as a box with the sizes you give, and your hallway and door as walls, a door frame and a ceiling. Then it searches for a way to move the box through: sliding it, turning it, lifting one end and tilting it, standing it on end, laying it on its back, in steps of 5 cm and 5° first and, if that finds nothing, of 2.5 cm and 2.5°. At every step the box is at least 1.5 cm from every wall, the door frame and the ceiling, and between steps it is checked at points so close together that no part of it moves more than half a centimetre unchecked. So when it shows you a way, that way works for the box with at least a centimetre to spare all round, from the moment it reaches the corner, door or stairs.
It assumes the box can get that far: that it arrives from somewhere with room to turn it (outside, or a room), resting on any of its sides, and that it can be tipped there if the ceiling allows (one end at a time, as people do). It doesn't know about radiators, light fittings, banisters or a door that doesn't open fully: measure the narrowest point, with the door open.
Stairs. A straight flight between two walls, from a hallway at the bottom, then either a hallway turning off at the top or straight on. Instead of the steps themselves it uses the slope through their front edges: every step lies under that slope, so this leaves a little less room than the real stairs (the notches under each step edge, which nothing big fits into anyway). The furniture is carried, resting on that slope: at every moment it is at the lowest height that clears it, which is the best height, because the ceiling and the edge of the floor above only limit it from above. Above the stairs the ceiling is open (the stairwell) except near the bottom, where the floor above ends: that edge is the headroom you enter. It doesn't know about handrails or banisters that stick out (measure the width to them), winders, or a landing halfway up. In the tests, every way it found on stairs was also checked against the real steps (not the slope) by separately written geometry, and all passed. The hallway at the bottom is taken to be as wide as the stairs; if yours is wider, there may be a little more room than it shows.
When it finds no way, that is not a proof: a way could squeeze between its steps, or need less than 1.5 cm to spare. Carrying a box flat round a corner has an exact answer you can work out by hand; on the tests the search agrees with it to within a centimetre, and it never found a way that the exact answer rules out. Some doors are settled without searching, by a rule that is certain: at the moment the box's middle passes through the doorway, the line through its middle across the doorway is inside the opening, and every such line through a box is at least as long as its shortest side. So if the shortest side is wider than the doorway less a centimetre each side, no way of turning that box gets it through with that centimetre to spare.
For a door it first tries carrying it straight through. Then every point of it crosses the doorway at the same height and the same distance from the door frame, so it gets through exactly when its outline, seen face-on to the wall, fits the opening (with the margin). That test is exact for each position it tries: turned in 15° steps and tipped in quarter-degree steps, as far as the ceiling allows. Off a hallway it also needs to fit the hallway's width while you walk it up to the door. Only if that fails does it search.
The "what would fit" lines come from the same search: a box that long, or a hallway or door that wide, is one it found a way for, and a centimetre more is one it didn't.
A real sofa isn't a box. If the box gets through, the sofa does too, since it fits inside the box. If it doesn't, tick "It's a sofa" and give its seat height, the depth of its backrest and its arms: it then uses that shape (a seat block, a backrest along the back and two equal arms, all solid), which can go where its box can't, for example tipped back through a door narrower than the sofa is deep. The rule about the shortest side is for boxes only. It still can't see legs that come off (take them off and subtract them from the heights), soft cushions, rounded arms, or the gaps movers use under a raised seat, so a real sofa may still do a little better. Corner sofas and chaises aren't covered, and the search for a sofa shape can take longer.
The code is on GitHub, with the tests: the search against the exact rule for flat carrying, and every way it finds checked again by separately written geometry.