Gear Shape Calculator

Gear Shape Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

b=2πrn(1+v),a=vb,A=πr2+n[(s+a)h2−r22(β−sin⁡β)]b = \frac{2\pi r}{n(1 + v)}, \quad a = v b, \quad A = \pi r^{2} + n\left[\frac{(s + a)h}{2} - \frac{r^{2}}{2}(\beta - \sin\beta)\right]
Usage stats

Advertisement

Results

Area A
377.727711
Perimeter P (n outer edges, 2n sides, n gap arcs)106.847822
Cog edge a (outer edge, as long as each gap arc)2.327106
Cog base b (arc of the circle under each cog)2.908882
Cog side c (each slanted side)2.124887
Cog chord s (straight inner side under b)2.898637
Trapezoid height h (from the chord s to the edge a)2.105584
Radius r10
Cog height i2
Gear radius R12

Report an error on this page

What is a gear shape?

A gear shape here is a circle of radius r with n equal cogs set regularly around it. Each cog is an isosceles trapezoid standing on the circle: its inner side is the chord s under an arc b of the circle (the cog base), and its outer edge a is parallel to that chord at the distance R from the centre of the circle, measured to the middle of the edge. Between two neighbouring cogs lies a gap, an arc of the circle exactly as long as the outer edge a, so the edge of one gear would fit the gap of another of the same kind; n cog bases and n gaps go once around the circle. The ratio v = a/b, greater than 0 and at most 1, fixes how wide the cogs are compared with the gaps. The outline is made of the n outer edges, the 2n slanted sides and the n gap arcs. It is a geometric figure, not the tooth profile of a working gear.

How to use it

Type the number of cogs n, a whole number from 3 to 1,000 (the upper limit is this page's choice), the ratio v, and two of the radius r, the cog height i and the gear radius R, where R = r + i. The page refuses values for which R is not greater than r, and cogs so low and wide that their slanted sides would pass inside the circle, each with a sentence that says so. The length unit is only a label: lengths come out in that unit and areas in its square. The number of cogs n must be a whole number from 3 to 1,000, radius r of the circle, cog height i and gear radius R must each be from 0.000001 to 1,000,000,000 and the ratio v of cog edge a to cog base b must be greater than 0 and at most 1; a number may also be typed in exponent form such as 2.5e3. Anything else, including text, is refused with a sentence that says why, and so is a set of values that cannot form the shape.

Derivation of the formulas

The n bases and the n gaps fill the circumference, and each gap is as long as a cog edge, a = v·b:

$$ n(a + b) = 2\pi r \quad\Longrightarrow\quad b = \frac{2\pi r}{n(1 + v)}, \qquad a = v b, \qquad \beta = \frac{b}{r} $$

The base arc has the central angle β, so its chord and the distance of the chord from the centre are 2r sin(β/2) and r cos(β/2). The outer edge lies at the distance R, so the trapezoid height and the slanted side are

$$ s = 2r\sin\frac{\beta}{2}, \qquad h = R - r\cos\frac{\beta}{2} = i + 2r\sin^{2}\frac{\beta}{4}, \qquad c = \sqrt{\left(\frac{s - a}{2}\right)^{2} + h^{2}} $$

Every cog adds its trapezoid to the disc, less the circular segment between the chord s and the arc b, which the trapezoid already covers; the outline has n edges a, 2n sides c and n gap arcs of length a:

$$ A = \pi r^{2} + n\left[\frac{(s + a)h}{2} - \frac{r^{2}}{2}(\beta - \sin\beta)\right], \qquad P = 2n(a + c) $$

A slanted side runs from the end of the base on the circle to the corner of the outer edge. It stays outside the circle exactly when it leaves the circle outward, that is when R cos(β/2) + (a/2) sin(β/2) is at least r; the page refuses the values for which it is less. Neighbouring cogs never overlap: a corner of an outer edge lies at the angle arctan(a/(2R)) from the middle of its cog, and since a is at most πr/n (v at most 1) while 2R tan(π/n) is more than 2πr/n, that angle is always less than π/n, half the angle between neighbouring cogs.

The page evaluates these forms in 64-digit decimal arithmetic and rounds each result once; the independent check places the outline by coordinates and measures it.

Worked example

The page opens with number of cogs n = 12, radius r of the circle = 10, cog height i (R − r) = 2, ratio v of cog edge a to cog base b = 0.8. Then area A ≈ 377.727711; perimeter P (n outer edges, 2n sides, n gap arcs) ≈ 106.847822; cog edge a (outer edge, as long as each gap arc) ≈ 2.327106; cog base b (arc of the circle under each cog) ≈ 2.908882; cog side c (each slanted side) ≈ 2.124887; trapezoid height h (from the chord s to the edge a) ≈ 2.105584. Each value is shown rounded once, from the computed number, to six decimals or to 12 significant digits, whichever is fewer; a value of 10¹² and more is written as its 12 significant digits times a power of ten, such as 1.23456789012 × 10¹⁵, since a computed number holds no more digits than that; a value below 0.0000005 is shown as its plain 12-digit number instead.

Advertisement
Gear diagram showing the worked example’s cog count, radius, cog height, and edge-to-base ratio.
The example uses 12 cogs, a circle radius of 10, a cog height of 2, and an edge-to-base ratio of 0.8.

Frequently asked questions

Can neighbouring cogs overlap?

No, not with a ratio v of at most 1: the outer edge is then at most half the arc between the middles of two cogs, and the derivation shows that its corners always stay on their own side of the line halfway between two cogs.

When does the page refuse the values?

When R is not greater than r, so the cogs would have no height, and when the cogs are so low and wide that a slanted side would dip inside the circle. A larger cog height i avoids the second case.

Which values of n does the page accept?

Whole numbers from 3 to 1,000. The upper limit is this page's choice. A fraction, text or a number outside that range is refused with a sentence that says so.

Why does the unit not change the numbers?

The calculator does not convert between units. Every length is read in the unit you chose, so the unit only labels the results; areas come out in that unit squared.

How accurate are the results?

Every result is computed in 64-digit decimal arithmetic, with π to 57 digits and sine, cosine and arctangent summed from their series until a term falls below 10⁻⁶⁶, by forms that lose no digits to cancellation; each shown value is that result rounded once to six decimals or to 12 significant digits, whichever is fewer. Every digit shown is correct for every input the page accepts.

Advertisement
Close-up of a cog showing its outer edge, base arc, slanted side, trapezoid height, and adjacent gap arc.
The cog’s outer edge is 2.327106, its base arc is 2.908882, its side is 2.124887, and its trapezoid height is 2.105584. The gap arc has the same length as the outer edge.

References

H. S. M. Coxeter, Introduction to Geometry, 2nd edition, Wiley, 1969

D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018

Last updated:

Most popular in Geometry

View all Geometry calculators