This proposal is not ready for activation. The supplied operation catalogue supports arithmetic but has no integer rounding, floor, ceiling or minimum-clamping operation. Consequently, it cannot calculate valid repeat-aware stitch counts or resulting dimensions after automatic rounding. The calculator below supplies only the supported theoretical calculations; fractional repeat counts are not knitting instructions. Engineering must register rounding with an explicit tie rule and support choosing a nonnegative whole repeat count and at least one whole row. Production must wait for that implementation, renderer integration and functional QA. Display precision is not a substitute for rounding an intermediate value.
Enter the original total stitch count, including its edges, and original row count. Supply both pattern and personal gauges as stitches per inch and rows per inch. Divide a gauge measured over four inches by four first; do not mix inch and centimetre measurements. Enter a positive whole-number stitch-repeat multiple and the total fixed edge stitches across both edges of the adjusted piece. Use repeat multiple 1 and edge stitches 0 when unrestricted. Counts, repeats and edges must be whole numbers; gauges may be fractional. Gauge inputs accept 0.01–100 per inch; original counts accept 1–100000; repeat multiples accept 1–1000; edge totals accept 0–1000. These are calculator input limits, not recommended knitting ranges. Measurements assume uniform gauge throughout the piece, including edges.
Gauge expresses stitches or rows per unit length, as described by the Craft Yarn Council. The following formulas are algebraic derivations from that definition; the repeat-rounding policy is a proposed calculator design choice.
Let S and R be original stitches and rows; gp and hp be pattern stitch and row gauges; gu and hu be personal gauges. All gauges here use inches. Target width W = S / gp and target height H = R / hp. The dimension-preserving theoretical counts are S = W × gu and R = H × hu. With m stitches per repeat and e total fixed edge stitches, the theoretical repeat count is (S* − e) / m.
For the future implementation, choose an integer k ≥ 0 minimizing |e + m × k − S|, subject to e + m × k ≥ 1. Resolve equal-distance ties upward. Then adjusted stitches S′ = e + m × k. Round R to the nearest integer of at least 1, also resolving ties upward. Resulting width W′ = S′ / gu and height H′ = R′ / hu; signed size differences are W′ − W and H′ − H. These rounded results are not currently implemented.
A negative theoretical repeat count means the fixed edges alone exceed the theoretical stitch target. It must not be interpreted as a usable repeat count. Rounding generally changes dimensions; exact size preservation is possible only when the theoretical counts satisfy the count constraints.
| Inputs | Target dimensions | Theoretical counts | Rounded counts | Resulting dimensions and differences |
|---|---|---|---|---|
| 100 stitches, 140 rows; pattern 5 stitches/in and 7 rows/in; personal 5.5 stitches/in and 7.5 rows/in; repeat 4, edges 2 | 20 × 20 in | 110 stitches; 150 rows; 27 repeats after edges | 110 stitches = 2 + 4 × 27; 150 rows | 20 × 20 in; width difference 0 in; height difference 0 in |
| 100 stitches, 100 rows; pattern 5 stitches/in and 7 rows/in; personal 5.3 stitches/in and 7.2 rows/in; repeat 6, edges 2 | 20 × 14.2857 in | 106 stitches; 102.8571 rows; 17.3333 repeats after edges | 104 stitches = 2 + 6 × 17; 103 rows | 19.6226 × 14.3056 in; width difference −0.3774 in; height difference +0.0198 in |
| 21 stitches, 21 rows; pattern 2 stitches/in and 2 rows/in; personal 1 stitch/in and 1 row/in; repeat 1, edges 0 | 10.5 × 10.5 in | 10.5 stitches; 10.5 rows | 11 stitches and 11 rows under the proposed upward tie rule | 11 × 11 in; width difference +0.5 in; height difference +0.5 in |
This calculation rescales a rectangular stitch-and-row count. It does not rewrite shaping, increases, decreases, neckline placement, stitch charts or vertical pattern repeats. Fixed edges are treated as stitches at the same gauge as the body; different border gauges need a separate dimensional model. The scalar engine uses registered unit 1 for these numeric values because stitches, rows and inches are not registered units; labels and the consistent inch-based convention identify their meaning. Unavailable calculations must remain unavailable, not be displayed as zero. For gauge preparation, see the Knitting and Crochet Gauge Calculator.
No registered thumbnail asset was supplied. Create and register a 400 × 400 pixel WebP thumbnail before activation, then insert it as the first image block using its real asset ID. Inspect neighboring tool thumbnails for style. Use the cute yellow five-point star mascot with a cheerful face and hands, floating without separate legs or feet, against a white background with navy, blue and teal knitting-gauge graphics. Do not invent an asset ID or file path.
