Running out of fabric halfway through is the most expensive mistake in sewing, because a dye lot is rarely reproducible. The usual advice is to buy 10% more than you think you need; for a patterned fabric with a large repeat, more like 25%.
Pattern repeat costs the most. If your repeat is 64 cm you cannot start a piece partway through a motif, so each pattern piece rounds up to a whole repeat — which is why stripes and checks are consistently more expensive to sew than plain fabric, even at the same price per metre.
Pre-wash your fabric before cutting. Cotton and linen shrink, and if you skip it the garment will shrink to fit somebody slightly smaller after the first wash.