A gauge mismatch usually gets blamed on inconsistent tension, but the more common cause is a swatch that wasn't measured under the same conditions the finished project will actually be worked and worn in. Each of these mistakes has a specific, mechanical fix.
Swatching too small
A swatch smaller than 4 inches square doesn't leave enough stitches away from the distorted edge to get an accurate count. Edge stitches are pulled tighter than the interior fabric, and on a small swatch that distortion covers a larger share of the total measured area. Fix: swatch at least 4 inches, ideally 5-6 inches, and measure only the interior stitches, away from the edges.
Measuring flat instead of blocked
Fiber relaxes, sometimes significantly, once washed or steamed. A swatch measured dry and unblocked can read tighter than the same fabric will measure after the finished project is blocked the way the pattern intends. Fix: block the swatch exactly the way you'll block the finished piece before measuring, especially for fibers like wool, alpaca, or cotton blends that shift noticeably with moisture.
Swatching in the wrong stitch pattern
Gauge measured in plain stockinette doesn't reliably predict gauge in a cabled, ribbed, or heavily textured pattern, since those patterns pull the fabric in or let it relax differently than stockinette does. Fix: swatch in the actual stitch pattern the project uses, not a stand-in, whenever the pattern's gauge is stated for something other than stockinette.
Ignoring row gauge
Many knitters check stitch gauge carefully and skip row gauge entirely, then find shaping (armholes, sleeve caps, heel turns) comes out at the wrong length even though the overall width fits. Fix: measure and match row gauge separately, particularly for any project where length-based shaping matters, and use the row-scale adjustment described in how to adjust a pattern for gauge when it doesn't match.
Swatching on the wrong needle size straight out of the gate
Starting a full project on the needle size a yarn label suggests, without ever swatching, skips the one step gauge checking exists for. Fix: swatch first, on the suggested size, then go up or down a needle size and re-swatch if the gauge doesn't match, rather than trusting the label's suggestion to hold for your personal tension.