Gauge calculator
Turn your swatch into stitches and rows per 4 in or 10 cm, then see how your gauge changes the pattern and what numbers to use instead.
Updated
How the gauge calculator works
Your gauge is the number of stitches you counted, divided by the width you counted them over, scaled to 4 in or 10 cm. If you counted 11 stitches over 2 in, that is 22 stitches per 4 in.
To adjust a pattern, each count is multiplied by your gauge and divided by the pattern's. With 22 stitches per 4 in instead of 20, a pattern's 100 stitches becomes 110 to reach the same width. Made as written, the same 100 stitches would come out about 9% narrower.
When not to adjust the numbers
Rescaling works for rectangles and simple tubes. For shaped garments, charts and lace, the stitch counts have to fit the pattern's repeats and shaping, so it is usually better to change needle size until your gauge matches.