Flag Calculator

Enter the flag height and this tool computes every American-flag proportion from Title 4 U.S.C. §§1–2, so your CNC cut spacing matches a real Stars and Stripes.

American flag with lettered dimensions A through H

The American Flag Ratios

These are the proportions this calculator applies (all relative to the flag height, A = 1.0):

  • (A) Height (hoist) of the flag = 1.0
  • (B) Width (fly) of the flag = 1.9
  • (C) Union height (hoist of the canton) = 0.5385 — A × 7/13, spanning seven stripes
  • (D) Union width (fly of the canton) = 0.76 — 2/5 of the flag width B
  • (E) Distance between union stars, vertical = 0.0538 — 1/10 of the union height C
  • (F) Distance between union stars, horizontal = 0.0633 — 1/12 of the union width D
  • (G) Diameter of a star = 0.0616 — 4/5 of the stripe width H
  • (H) Width of a stripe = 0.0769 — 1/13 of the flag height A
Flag layouts should use these colors in hex: Red #B22234, White #FFFFFF, Blue #3C3B6E.
Flag cut rendered in Vectric from these numbers

Star Spacing

Detail of the union star field

Army regulation AR 840-10 arranges the 50 stars in nine alternating rows of five and six. The horizontal spacing between stars in a row is derived from the canton width:

  • Rows of five: Spacing = (0.5385 × W − 5 × D) / 4
  • Rows of six: Spacing = (0.5385 × W − 6 × D) / 5

where D is a single star's diameter, equal to 0.0616 times the height of the blue field.

Respecting the Flag

American flag displayed with proper dimensions

The flag represents freedom, justice and democracy, so handle and display it with respect. Fold it neatly into a triangle showing only the blue field when storing it; raise it briskly and lower it slowly, never letting it touch the ground.

Fly it from a pole or hang it vertically with the union on the observer's left, and illuminate it at night. When a flag is worn or damaged, retire it dignifiedly — typically by burning in a private ceremony.