Bag Calculator
Find the piece of cloth to cut for a bag of your own dimensions.
Centimetres, inches or yards, a flat or boxed base, and the bag solved back from cloth you already have.
Updated November 28, 2026
Introduction
One rectangle, three numbers
Almost every simple bag starts the same way: one rectangle of cloth, folded in half and joined up the sides, with a square taken out of each bottom corner if you want it to open out into a base. That is a tote, a market bag, a book bag, a fabric basket.
This calculator turns the bag you want into that rectangle. You give it the finished size — height, width and depth — and it returns how wide to cut the cloth, how long to cut it, and the size of the corner square that makes the base.
People arrive here in two situations: they have chosen a bag size and need to know how much cloth to buy, or they have a piece of cloth in the cupboard and want to know what bag fits inside it. Both work, because every measurement here can be turned around.
7 length units
Centimetres, inches, millimetres, metres, feet, yards
3 cut numbers
Cut width, cut length and the corner square
One inch
Seam allowance added to, not included in, your sizes
The rectangle is the bag body only
Handles, the turn of cloth at the top opening, a lining, inner pockets and any interfacing are not part of these two measurements. Work them out separately and add them to your shopping list; the guide returns to this at the end because it is the most common way to come up short.
Quick start
Describe the finished bag, not the cloth
Height is the sewn bag from the base seam to the top edge. Width is across the front face. Depth is front to back, measured across the bottom of the bag — the measurement that makes a bag stand up on a table.
The easiest way to get all three is to grab a bag you already like, flatten it, and measure it: the flat front gives the width, the side gusset gives the depth, and the height is the same as what you see. Enter the numbers in whichever unit you measured in; the menu on each box can change later without touching the cloth you will cut.
Read the two boxes under Fabric needed
In that group, Width is the width of the piece to cut — right the way round the bag, both faces and both gussets. The Height below it is the cut length. The names repeat the bag dimensions above them, which trips people up: the second pair are cutting measurements, and they are always larger than the finished bag.
Answer the corner question
Yes! switches on the corner row and gives you the square to snip out of each bottom corner. No! hides it again. The rectangle itself does not change either way, so you can flick between the two answers while planning without losing your sizes.
A 40 cm market bag, worked through
Say you want a bag 40 cm wide, 35 cm high and 12 cm deep, with boxed corners. The cut width goes right round, so it is twice the width plus twice the depth, plus the allowance:
The cut length is the bag height plus half the depth for the base, plus the same allowance:
And the corner square is half the depth, so a 12 cm base comes from 6 cm corners:
Cut one piece 106.54 cm × 43.54 cm, then take a 6 cm square out of each bottom corner before sewing the corners shut.
How the cut is built
1. Cut width: the piece has to go all the way round
Folded in half, the rectangle becomes the whole way around the bag: the front face plus one gusset is half of the loop, so the full width is twice the front plus twice the depth. Nothing is added for the fold, because a fold takes up no cloth.
This is why a 40 cm bag takes more than a metre of cloth. The number on the paper pattern — the cut width — is roughly two bag widths plus two depths, not one.
2. Cut length: the base eats half the depth
The finished height plus the cloth that disappears into the base, plus the allowance. The base is formed by cutting a square out of each bottom corner and sewing those openings shut, and that takes exactly half the depth off the piece’s length.
So a deeper bag costs you height as well as width: two extra centimetres of depth add four centimetres to the cut width and one centimetre to the cut length.
3. Corner square: half the depth, both sides
Cut a square of side out of each bottom corner and sew the short edges together: the base opens out to twice that square, which is the depth you asked for. A 12 cm deep bag therefore takes 6 cm squares, and a 7.5 cm square gives a 15 cm base.
In the flat piece this is the same number as the half-depth in the cut length. That is not a coincidence: the cloth that opens into the base is the cloth that was taken out of the length.
4. The allowance is one inch, whatever unit you type
One inch in total, a half inch on each side of the seam, is added to both the cut width and the cut length. The arithmetic runs in inches, so a bag entered in centimetres gains 2.54 cm rather than a round centimetre — that is the small decimal at the end of every result, and it is correct rather than an error.
The allowance is fixed: there is no box for it. If you sew wider seams, or you want a generous turn at the top opening, add the difference to the cut sizes yourself.
| Finished bag (w × h × d) | Cut width | Cut length | Corner square |
|---|---|---|---|
| 30 × 25 × 8 cm | 78.54 cm | 31.54 cm | 4 cm |
| 40 × 35 × 12 cm | 106.54 cm | 43.54 cm | 6 cm |
| 45 × 40 × 15 cm | 122.54 cm | 50.04 cm | 7.5 cm |
| 60 × 50 × 20 cm | 162.54 cm | 62.54 cm | 10 cm |
Five sizes read off the calculator, all rows with boxed corners. The table is a shortcut, not a replacement: your own bag dimensions will land between these rows.
Working from cloth you own
The rectangle already tells you two things
Because the cut sizes are the same two statements read from the other end, a piece of cloth in hand answers the bag question — once you supply the missing measurement. Type the cloth into the two Fabric needed boxes, give it one more value (a depth is the usual choice), and the bag width and height are solved for you.
Type the width and length of the piece
A common quilting cotton offcut is 45 in wide and you are happy with a 33.5 in length. Put those two numbers into the Fabric boxes, in inches.
Give it the depth you want
Say 5 in. Depth is the one number cloth cannot tell you: two unknowns — width and height — come out of the two cloth sizes, so the third measurement has to come from you. Any of the three bag boxes works; the corner square works too, and solves the depth as twice itself.
Read the bag that fits
So that piece makes a bag 17 in wide, 30 in high and 5 in deep, with 2.5 in corners. Nothing is left over for straps, which is the next section.
What happens to the boxes you did not type
The calculator keeps the numbers you entered last and works out the rest, and it shows you which are which: a solved number is coloured, a number you typed stays plain. Change one bag dimension afterwards and both cloth sizes follow it, because they depend on it. Clear a bag dimension entirely and the cloth sizes that needed it go blank rather than keeping a stale figure — that is deliberate, so you never cut from an answer that no longer holds.
Worked examples
A market bag with a boxed base
Situation: A shopper who wants a bag wide enough for a flat of vegetables and deep enough to stand up in the boot, planned from scratch.
What goes in
What comes out
One rectangle, one corner square, and the finished bag measures the 40 × 35 × 12 cm on the label.
In practice: buy at least 106.54 cm of a cloth at least 43.54 cm wide, then cut the corner squares through both layers at once so they match.
An offcut that has been in the cupboard
Situation: A piece of cotton duck 45 in by 33.5 in, bought for something else, and the question of what bag it makes.
What goes in
What comes out
A tall 17 in bag — useful for a book bag or a shopping tote, less so for something slung over a shoulder without straps.
In practice: if 30 in of height is more than you want, shorten the cut length and re-read the bag height: the depth and the width stay where you put them.
A fabric basket for a shelf
Situation: A basket that has to hold its own shape on a shelf, 30 cm square with a 15 cm deep base.
What goes in
What comes out
Square corners and a square base are just a special case: width and height are equal and nothing else changes.
In practice: cut the rectangle and the 7.5 cm corners first, then decide how much interfacing the cloth needs; the calculator cannot tell you that, only how much cloth the shell takes.
Measuring and cutting advice
Measure a bag you already like
Guessing at a size is the usual reason a homemade bag ends up the wrong shape. Flatten a bag you use, measure the flat front for the width, the side gusset for the depth, and the height seam-to-edge. Those three numbers describe the bag far better than “medium”.
Do not add anything for seams at this stage: the allowance is already inside the cut sizes.
Depth costs you twice
Depth is the number that catches people out. Every extra centimetre of depth adds two centimetres to the cut width and half a centimetre to the cut length, so a deep bag uses noticeably more cloth than its front dimensions suggest.
If the cloth is tight, take depth out of the bag rather than height: it is the change that saves the most.
Check the cut width against the bolt
Most cloth arrives folded on a bolt, and the cut width of a roomy bag is often wider than the bolt. If the number in the Fabric Width box is larger than the cloth is wide, the piece has to be pieced, or the bag redesigned with less depth or less width.
A one-way print or a nap has the same effect: both halves must run the same way, which means joining them rather than laying the piece sideways. The calculator does not add anything for that join.
Pick cloth that suits how the bag is carried
Canvas, cotton duck, denim and oilcloth hold a shape and take the strain of a loaded bag. Quilting cotton is pleasant to sew and makes a good bag, but it is thin enough that the corners of what you carry will find their way through, so a lining earns its keep.
If the cloth is heavy, remember that the seams get thick where four layers meet at the boxed corners. Trimming the allowances there is normal practice.
A homemade cotton bag needs using
Making the bag is the hard part; remembering to carry it is what actually decides its benefit. Our bag footprint calculator shows how many trips a reusable cotton bag has to cover before it beats the single-use bags it replaces — a useful reality check before the next one is cut out.
What it does not cover
Strips, hems and linings are not in the rectangle
The two cut sizes describe the body of the bag only. Straps and handles, the turn at the top opening, a lining, inner pockets and any interfacing all come out of cloth or notions that this calculator knows nothing about. A pair of shoulder straps alone can be a length of cloth as long as the bag body, so plan them before you buy.
The seam allowance is fixed at one inch
There is no field for it, and it is not included in the size you typed — it is added on top. If your seams are wider than half an inch each side, or you want a deep turn at the top, add the difference to both cut sizes yourself. If they are narrower, the bag comes out slightly bigger than you asked for.
With the corner answer on No!, the depth is still reserved
The rectangle keeps the full depth whether you box the corners or not. Sew the sides straight across the bottom without cutting corners and you get a flat pouch whose finished width is the bag width plus the depth you typed. Answer Yes! whenever you want the finished bag to match the sizes you entered, and leave it on No! only when all you need is the cloth for a bag you will shape yourself.
The corner size belongs to that question: answering No! drops the corner you may have typed, so re-answer Yes! and re-enter it if you flick back and forth.
No allowance for shrinkage, waste or matching
Wash and dry the cloth the way the finished bag will be washed before you cut, because cotton and linen can shrink noticeably, and a bag cut first and washed later loses the size that was planned. The calculator also adds nothing for squaring up a skewed cut edge, for matching a check or a stripe, or for the odd badly printed metre that has to be worked around.
The red bounds are sanity checks, not machine limits
A bag side over about 2.5 m (100 in), or a single piece of cloth over about 5 m (200 in), turns the box red and explains itself while keeping the number on screen. Those are not hard failures: a huge storage bag is real, and the warning exists because a figure that size is far more often a unit-menu mistake than a bag.
Questions
Should the height, width and depth be the flat bag or the bag in use?
The finished, sewn bag, filled out enough to show its shape. The width is the front face across the bag at its widest, the depth is front to back across the bottom, and the height runs from the base seam to the top edge. If you measure a flattened bag with nothing in it, the width you get is close to correct, but the depth reads as nearly zero — hold the base open when you measure it.
Why does the cut length change when I only touch the depth?
Because the base is made of cloth that used to be part of the length. Every centimetre of depth needs half a centimetre of cloth up the piece for the corner, so the cut length moves by even when the finished height is unchanged. A bag 2 cm deeper is 4 cm wider on the cloth and 1 cm longer.
Why is one inch of seam allowance 2.54 cm on my cloth?
Because the allowance is a fixed inch, not a fixed number of centimetres. The arithmetic behind the calculator runs in inches and your entry is converted into inches first, so the allowance comes back as exactly 2.54 cm. That is why the results carry a decimal tail such as 106.54 cm rather than a round number.
Do I need extra cloth for the straps?
Yes, and it is not included in the Fabric needed numbers. Work the straps out separately: two straps each need roughly twice the length you want to hang, plus a seam allowance at both ends, and a wider strap is often cut as one piece folded in four. Cut them from the cloth you have left, or from a second piece in a contrasting colour, and write the amount down before you go shopping.
Can I make a completely flat bag with no base at all?
The depth box has to hold a positive number, so enter a very small one — a tenth of a centimetre — and the cut width comes out at almost exactly twice the bag width plus the allowance, which is what a flat pouch needs. A better route for most bags is to keep the depth you want and box the corners: the base is what stops everything sliding into one corner.
Related Calculators
Bra Size Calculator
Convert an underbust and bust measurement into US, UK and EU bra sizes, with cup letters and sister sizes in centimetres or inches.
Dress Size Calculator
Turn bust, waist and hip measurements into US, UK, EU and international dress sizes, with a consensus size and the spread between them.
Sock Size Calculator
Turn a US, UK/AU or EU shoe size into the sock size band and general size name, for adults and for children by age or shoe size.
Sunglasses Size Calculator
Turn forehead, cheek, jawline and face-length measurements into a lens-bridge-temple sunglasses size in millimetres, plus your face shape and lens depth.
Appliance Depreciation Calculator
Value a used appliance from its age and replacement price: see the actual cash value, or solve back for the age, the price or the depreciation rate.
0-60 Calculator
Estimate your vehicle's 0-60 mph acceleration time based on engine power, weight, drivetrain, tires, and road conditions.