Convert grams to length in inches using linear mass density, solve grams from length, or calculate cubic inches from mass and material density.

Mass and length are different quantities. Divide mass by linear mass density to obtain length.

Use measured or manufacturer-specified mass per unit length.

Display settings

Calculator Functions

FunctionWhat it doesWhat it requires
Length from massFinds the length of a uniform wire, cord, chain or strip from its weightRequires mass, linear mass density and length result unit
Mass from lengthFinds the weight of a given length of the same kind of itemRequires length, linear mass density and mass result unit
Volume from massFinds the volume a mass takes up, in cubic inches or another volume unitRequires mass, material density and volume result unit

Mass can be entered in grams, milligrams, kilograms, ounces or pounds, and length in inches, feet, centimeters or meters. Linear mass density takes grams per inch, per foot or per meter, kilograms per meter, or ounces per inch. Material density has presets for water (1.00 g/cm³), aluminum (2.70), structural steel (7.85) and pure gold (19.32), or a custom value. A display setting shows up to 2, 4 or 6 decimals.

Grams to Inches Formulas

L = M ÷ λ
LLength (in)
MMass (g)
λLinear mass density: the mass of one inch of the item (g/in)

Grams measure mass and inches measure length, so no fixed number converts one to the other. The link between them is how much one inch of a particular item weighs. That figure comes from the maker’s specification, or from weighing a measured length and dividing the grams by the inches.

Length from mass

The main formula applies directly. 100 g of a cord that weighs 5 g per inch is 100 ÷ 5 = 20 inches long. The same 100 g of a finer cord at 0.5 g per inch would be 200 inches.

Mass from length

M = L × λ

36 inches of material at 2.5 g per inch weighs 36 × 2.5 = 90 g.

Volume from mass

V = M ÷ ρ

V is the volume in cubic inches and ρ is the material density in grams per cubic inch, which is the density in g/cm³ times 16.387064 [1]. This answers how many cubic inches a weight of material fills. 450 g of aluminum is 450 ÷ 44.25 = 10.17 in³. The table shows each preset.

MaterialDensity (g/cm³)Density (g/in³)Volume of 100 g (in³)
Water1.0016.396.102
Aluminum2.744.252.26
Structural steel7.85128.640.777
Pure gold19.32316.60.316

The presets match reference densities of 1.000 g/cm³ for liquid water, 2.699 for aluminum and 19.32 for gold [2], and 7,850 kg/m³ for structural steel [3].

Limits of This Estimate

  • There is no direct grams to inches conversion. A length needs the weight per inch of the specific item, and a volume needs the density of the material.
  • Length from mass assumes the item has the same cross section and material along its whole length.
  • Preset densities are for pure or typical material at room temperature. Alloy, grade, purity and temperature change them, so a custom density is better when one is known.

Sources

  1. NIST, Guide to the SI, Appendix B.8: inch, cubic inch, ounce and pound conversion factors
  2. NIST, X-Ray Mass Attenuation Coefficients, Tables 1 and 2: densities of aluminum, gold and liquid water
  3. Iowa Department of Transportation, Materials IM 569: Computing Structural Steel Weight: structural steel density