Skip to content

Length Converter

Convert between millimeters, centimeters, meters, kilometers, inches, feet, yards, miles and nautical miles. Every factor is exact, so 1 inch is always precisely 2.54 cm.

Maintained by Jairo TunisseLast updated Editorial policy

Convert length

Common length conversions

1 in2.54 cm
1 ft0.3048 m
1 yd0.9144 m
1 mi1.609344 km
1 nmi1.852 km
1 m3.280839895 ft
1 km0.6213711922 mi
1 cm0.3937007874 in

How we calculated this

Each unit is defined as an exact multiple of one SI base unit. We multiply your value by the “from” unit’s factor to reach the base unit, then divide by the “to” unit’s factor. Full floating-point precision is kept throughout; only the displayed result is rounded.

result = value × factor(from) ÷ factor(to) base unit: meter · 1 in = 0.0254 m · 1 ft = 0.3048 m · 1 mi = 1,609.344 m · 1 nmi = 1,852 m

Worked example (default inputs)

12 in = 30.48 cm 1 in = 0.0254 m (exact) 1 cm = 0.01 m

When to use this converter

Use it for anything measured in a line: a person’s height in feet and inches versus centimeters, furniture that must fit a space listed in metric, the distance of a race or a road trip, or a nautical chart that measures in nautical miles. Choose the unit you have, the unit you need, and read the result instantly — no button press required. Measuring a room? The square footage calculator multiplies length by width for you.

Where the numbers come from

Since the 1959 international yard and pound agreement, the inch has been defined as exactly 25.4 millimeters. Every other US customary length follows from it: 12 inches to the foot, 3 feet to the yard and 5,280 feet to the mile, which makes a mile exactly 1,609.344 meters. The nautical mile is defined separately as exactly 1,852 meters. Because these are definitions rather than measurements, the conversions have no uncertainty at all.

Tips for accurate results

Keep full precision until the last step: round only the number you actually report. For height, convert the total in inches (for example 5 ft 10 in = 70 in) rather than converting feet and inches separately. Lengths are magnitudes, so this converter accepts zero and positive values only. For floor space and land, use the area converter.

Worked examples

Height: someone who is 5 ft 10 in tall is 70 inches, and 70 × 2.54 = 177.8 cm. Going the other way, 180 cm ÷ 2.54 is about 70.87 inches, or roughly 5 ft 10.9 in. See centimeters to feet and feet to centimeters for full tables.

Running: a 10K is 10 km ÷ 1.609344 ≈ 6.21 miles, and a marathon is 42.195 km, about 26.2 miles. The kilometers to miles page lists the standard race distances.

Hardware: a 1/2-inch board is 0.5 × 25.4 = 12.7 mm thick, so a 12 mm metric sheet is slightly thinner. Check the inches to millimeters table before mixing metric and inch parts.

Frequently asked questions

How many centimeters are in an inch?

Exactly 2.54 centimeters. The inch has been defined as 25.4 millimeters since 1959.

How do I convert feet to meters?

Multiply feet by 0.3048. For example, 10 feet × 0.3048 = 3.048 meters.

How many kilometers are in a mile?

One statute mile is exactly 1.609344 kilometers, so 10 miles is 16.09344 km.

What is a nautical mile?

A unit used at sea and in aviation, defined as exactly 1,852 meters — about 1.15 statute miles.

Why can’t I enter a negative length?

A length is a size, which can’t be negative. If you need a difference between two positions, convert the absolute value and keep the sign yourself.