{"success":true,"version":"v1","request":{"tool":"get_calculator_schema","calculator_id":"density"},"result":{"entity_type":"calculator","id":"density","calculator_id":"density","canonical_url":"https://tttkmbb.com/conversion/density","name":"Density Converter","title":"Density Converter – kg/m³, g/cm³, g/mL, g/L, lb/ft³, lb/in³ and lb/gal","category":"conversion","category_name":"Unit Conversion","tool_name":"convert_density","featured_mcp_tool":false,"description":"Converts density between kg/m³, g/cm³, g/mL, kg/L, g/L, mg/L, lb/ft³, lb/in³, oz/in³ and lb per US gallon using exact mass and volume definitions (1 lb/ft³ = 16.01846337 kg/m³).","use_when":"You need a material or fluid density in another unit, e.g. g/cm³ to kg/m³, kg/m³ to lb/ft³ or g/mL to lb/gal.","do_not_use_when":"You need to compute density from mass and volume (a physics calculation, not a unit conversion) or concentration in mol/L (use molarity).","inputs":[{"name":"value","label":"Value","type":"number","required":true,"description":"Amount to convert, expressed in from_unit.","example":1},{"name":"from_unit","label":"From unit","type":"enum","required":true,"values":[{"value":"kg/m3","label":"Kilogram per cubic metre (kg/m³)","aliases":["kg/m^3","kg/m³","kilogram per cubic metre","kilogram-per-cubic-metre","kilogrampercubicmetre","kilogram·per·cubic·metre","kilogram_per_cubic_metre","kilogram per cubic meter","kilogram-per-cubic-meter","kilogrampercubicmeter","kilogram·per·cubic·meter","kilogram_per_cubic_meter","kilograms per cubic metre","kilograms-per-cubic-metre","kilogramspercubicmetre","kilograms·per·cubic·metre","kilograms_per_cubic_metre","kilograms per cubic meter","kilograms-per-cubic-meter","kilogramspercubicmeter","kilograms·per·cubic·meter","kilograms_per_cubic_meter"]},{"value":"g/cm3","label":"Gram per cubic centimetre (g/cm³)","aliases":["g/cm^3","g/cm³","gram per cubic centimetre","gram-per-cubic-centimetre","grampercubiccentimetre","gram·per·cubic·centimetre","gram_per_cubic_centimetre","gram per cubic centimeter","gram-per-cubic-centimeter","grampercubiccentimeter","gram·per·cubic·centimeter","gram_per_cubic_centimeter","grams per cubic centimetre","grams-per-cubic-centimetre","gramspercubiccentimetre","grams·per·cubic·centimetre","grams_per_cubic_centimetre","grams per cubic centimeter","grams-per-cubic-centimeter","gramspercubiccentimeter","grams·per·cubic·centimeter","grams_per_cubic_centimeter","g/cc"]},{"value":"g/mL","label":"Gram per millilitre (g/mL)","aliases":["gram per millilitre","gram-per-millilitre","grampermillilitre","gram·per·millilitre","gram_per_millilitre","gram per milliliter","gram-per-milliliter","grampermilliliter","gram·per·milliliter","gram_per_milliliter","grams per millilitre","grams-per-millilitre","gramspermillilitre","grams·per·millilitre","grams_per_millilitre","grams per milliliter","grams-per-milliliter","gramspermilliliter","grams·per·milliliter","grams_per_milliliter"]},{"value":"g/L","label":"Gram per litre (g/L)","aliases":["gram per litre","gram-per-litre","gramperlitre","gram·per·litre","gram_per_litre","gram per liter","gram-per-liter","gramperliter","gram·per·liter","gram_per_liter","grams per litre","grams-per-litre","gramsperlitre","grams·per·litre","grams_per_litre","grams per liter","grams-per-liter","gramsperliter","grams·per·liter","grams_per_liter"]},{"value":"mg/L","label":"Milligram per litre (mg/L)","aliases":["milligram per litre","milligram-per-litre","milligramperlitre","milligram·per·litre","milligram_per_litre","milligram per liter","milligram-per-liter","milligramperliter","milligram·per·liter","milligram_per_liter","milligrams per litre","milligrams-per-litre","milligramsperlitre","milligrams·per·litre","milligrams_per_litre","milligrams per liter","milligrams-per-liter","milligramsperliter","milligrams·per·liter","milligrams_per_liter"]},{"value":"kg/L","label":"Kilogram per litre (kg/L)","aliases":["kilogram per litre","kilogram-per-litre","kilogramperlitre","kilogram·per·litre","kilogram_per_litre","kilogram per liter","kilogram-per-liter","kilogramperliter","kilogram·per·liter","kilogram_per_liter","kilograms per litre","kilograms-per-litre","kilogramsperlitre","kilograms·per·litre","kilograms_per_litre","kilograms per liter","kilograms-per-liter","kilogramsperliter","kilograms·per·liter","kilograms_per_liter","kg/dm³","kg/dm3","kg/dm^3"]},{"value":"lb/ft3","label":"Pound per cubic foot (lb/ft³)","aliases":["lb/ft^3","lb/ft³","pound per cubic foot","pound-per-cubic-foot","poundpercubicfoot","pound·per·cubic·foot","pound_per_cubic_foot","pounds per cubic foot","pounds-per-cubic-foot","poundspercubicfoot","pounds·per·cubic·foot","pounds_per_cubic_foot","pcf"]},{"value":"lb/in3","label":"Pound per cubic inch (lb/in³)","aliases":["lb/in^3","lb/in³","pound per cubic inch","pound-per-cubic-inch","poundpercubicinch","pound·per·cubic·inch","pound_per_cubic_inch","pounds per cubic inch","pounds-per-cubic-inch","poundspercubicinch","pounds·per·cubic·inch","pounds_per_cubic_inch"]},{"value":"oz/in3","label":"Ounce per cubic inch (oz/in³)","aliases":["oz/in^3","oz/in³","ounce per cubic inch","ounce-per-cubic-inch","ouncepercubicinch","ounce·per·cubic·inch","ounce_per_cubic_inch","ounces per cubic inch","ounces-per-cubic-inch","ouncespercubicinch","ounces·per·cubic·inch","ounces_per_cubic_inch"]},{"value":"lb/gal_us","label":"Pound per US gallon (lb/gal (US))","aliases":["lb/gal-us","lb/gal us","lb/galus","lb/gal·us","lb/gal (us)","lb/gal-(us)","lb/gal(us)","lb/gal·(us)","lb/gal_(us)","pound per us gallon","pound-per-us-gallon","poundperusgallon","pound·per·us·gallon","pound_per_us_gallon","pounds per us gallon","pounds-per-us-gallon","poundsperusgallon","pounds·per·us·gallon","pounds_per_us_gallon","pound per gallon","pound-per-gallon","poundpergallon","pound·per·gallon","pound_per_gallon","pounds per gallon","pounds-per-gallon","poundspergallon","pounds·per·gallon","pounds_per_gallon","lb/gal"]}],"description":"Unit of the input value. Accepted symbols: kg/m3, g/cm3, g/mL, g/L, mg/L, kg/L, lb/ft3, lb/in3, oz/in3, lb/gal_us; spelled-out names and common abbreviations are accepted too.","example":"g/cm3"},{"name":"to_unit","label":"To unit","type":"enum","required":true,"values":[{"value":"kg/m3","label":"Kilogram per cubic metre (kg/m³)","aliases":["kg/m^3","kg/m³","kilogram per cubic metre","kilogram-per-cubic-metre","kilogrampercubicmetre","kilogram·per·cubic·metre","kilogram_per_cubic_metre","kilogram per cubic meter","kilogram-per-cubic-meter","kilogrampercubicmeter","kilogram·per·cubic·meter","kilogram_per_cubic_meter","kilograms per cubic metre","kilograms-per-cubic-metre","kilogramspercubicmetre","kilograms·per·cubic·metre","kilograms_per_cubic_metre","kilograms per cubic meter","kilograms-per-cubic-meter","kilogramspercubicmeter","kilograms·per·cubic·meter","kilograms_per_cubic_meter"]},{"value":"g/cm3","label":"Gram per cubic centimetre (g/cm³)","aliases":["g/cm^3","g/cm³","gram per cubic centimetre","gram-per-cubic-centimetre","grampercubiccentimetre","gram·per·cubic·centimetre","gram_per_cubic_centimetre","gram per cubic centimeter","gram-per-cubic-centimeter","grampercubiccentimeter","gram·per·cubic·centimeter","gram_per_cubic_centimeter","grams per cubic centimetre","grams-per-cubic-centimetre","gramspercubiccentimetre","grams·per·cubic·centimetre","grams_per_cubic_centimetre","grams per cubic centimeter","grams-per-cubic-centimeter","gramspercubiccentimeter","grams·per·cubic·centimeter","grams_per_cubic_centimeter","g/cc"]},{"value":"g/mL","label":"Gram per millilitre (g/mL)","aliases":["gram per millilitre","gram-per-millilitre","grampermillilitre","gram·per·millilitre","gram_per_millilitre","gram per milliliter","gram-per-milliliter","grampermilliliter","gram·per·milliliter","gram_per_milliliter","grams per millilitre","grams-per-millilitre","gramspermillilitre","grams·per·millilitre","grams_per_millilitre","grams per milliliter","grams-per-milliliter","gramspermilliliter","grams·per·milliliter","grams_per_milliliter"]},{"value":"g/L","label":"Gram per litre (g/L)","aliases":["gram per litre","gram-per-litre","gramperlitre","gram·per·litre","gram_per_litre","gram per liter","gram-per-liter","gramperliter","gram·per·liter","gram_per_liter","grams per litre","grams-per-litre","gramsperlitre","grams·per·litre","grams_per_litre","grams per liter","grams-per-liter","gramsperliter","grams·per·liter","grams_per_liter"]},{"value":"mg/L","label":"Milligram per litre (mg/L)","aliases":["milligram per litre","milligram-per-litre","milligramperlitre","milligram·per·litre","milligram_per_litre","milligram per liter","milligram-per-liter","milligramperliter","milligram·per·liter","milligram_per_liter","milligrams per litre","milligrams-per-litre","milligramsperlitre","milligrams·per·litre","milligrams_per_litre","milligrams per liter","milligrams-per-liter","milligramsperliter","milligrams·per·liter","milligrams_per_liter"]},{"value":"kg/L","label":"Kilogram per litre (kg/L)","aliases":["kilogram per litre","kilogram-per-litre","kilogramperlitre","kilogram·per·litre","kilogram_per_litre","kilogram per liter","kilogram-per-liter","kilogramperliter","kilogram·per·liter","kilogram_per_liter","kilograms per litre","kilograms-per-litre","kilogramsperlitre","kilograms·per·litre","kilograms_per_litre","kilograms per liter","kilograms-per-liter","kilogramsperliter","kilograms·per·liter","kilograms_per_liter","kg/dm³","kg/dm3","kg/dm^3"]},{"value":"lb/ft3","label":"Pound per cubic foot (lb/ft³)","aliases":["lb/ft^3","lb/ft³","pound per cubic foot","pound-per-cubic-foot","poundpercubicfoot","pound·per·cubic·foot","pound_per_cubic_foot","pounds per cubic foot","pounds-per-cubic-foot","poundspercubicfoot","pounds·per·cubic·foot","pounds_per_cubic_foot","pcf"]},{"value":"lb/in3","label":"Pound per cubic inch (lb/in³)","aliases":["lb/in^3","lb/in³","pound per cubic inch","pound-per-cubic-inch","poundpercubicinch","pound·per·cubic·inch","pound_per_cubic_inch","pounds per cubic inch","pounds-per-cubic-inch","poundspercubicinch","pounds·per·cubic·inch","pounds_per_cubic_inch"]},{"value":"oz/in3","label":"Ounce per cubic inch (oz/in³)","aliases":["oz/in^3","oz/in³","ounce per cubic inch","ounce-per-cubic-inch","ouncepercubicinch","ounce·per·cubic·inch","ounce_per_cubic_inch","ounces per cubic inch","ounces-per-cubic-inch","ouncespercubicinch","ounces·per·cubic·inch","ounces_per_cubic_inch"]},{"value":"lb/gal_us","label":"Pound per US gallon (lb/gal (US))","aliases":["lb/gal-us","lb/gal us","lb/galus","lb/gal·us","lb/gal (us)","lb/gal-(us)","lb/gal(us)","lb/gal·(us)","lb/gal_(us)","pound per us gallon","pound-per-us-gallon","poundperusgallon","pound·per·us·gallon","pound_per_us_gallon","pounds per us gallon","pounds-per-us-gallon","poundsperusgallon","pounds·per·us·gallon","pounds_per_us_gallon","pound per gallon","pound-per-gallon","poundpergallon","pound·per·gallon","pound_per_gallon","pounds per gallon","pounds-per-gallon","poundspergallon","pounds·per·gallon","pounds_per_gallon","lb/gal"]}],"description":"Unit to convert into (same symbols as from_unit).","example":"lb/ft3"}],"outputs":[{"name":"result","label":"Result","type":"number","decimals":6,"description":"Converted value expressed in to_unit (rounded to 6 decimals; see result_text for very small or very large values)."},{"name":"result_text","label":"Conversion","type":"string","decimals":4,"description":"The conversion as text with 6 significant figures, e.g. \"5 mi = 8.04672 km\"."},{"name":"formula","label":"Unit relation","type":"string","decimals":4,"description":"Relation used, e.g. \"1 mi = 1.609344 km\"."},{"name":"factor","label":"Factor","type":"number","decimals":12,"description":"Multiplier from from_unit to to_unit (result = value × factor); absent for non-linear conversions."},{"name":"conversion_table","label":"Conversion table","type":"object","decimals":12,"description":"The input value expressed in every supported density unit (6 significant figures), keyed by unit symbol."}],"input_schema":{"type":"object","properties":{"value":{"description":"Amount to convert, expressed in from_unit.","type":"number","examples":[1]},"from_unit":{"description":"Unit of the input value. Accepted symbols: kg/m3, g/cm3, g/mL, g/L, mg/L, kg/L, lb/ft3, lb/in3, oz/in3, lb/gal_us; spelled-out names and common abbreviations are accepted too.","type":"string","enum":["kg/m3","g/cm3","g/mL","g/L","mg/L","kg/L","lb/ft3","lb/in3","oz/in3","lb/gal_us"],"examples":["g/cm3"]},"to_unit":{"description":"Unit to convert into (same symbols as from_unit).","type":"string","enum":["kg/m3","g/cm3","g/mL","g/L","mg/L","kg/L","lb/ft3","lb/in3","oz/in3","lb/gal_us"],"examples":["lb/ft3"]}},"additionalProperties":false,"required":["value","from_unit","to_unit"]},"output_schema":{"type":"object","properties":{"result":{"description":"Converted value expressed in to_unit (rounded to 6 decimals; see result_text for very small or very large values).","type":"number"},"result_text":{"description":"The conversion as text with 6 significant figures, e.g. \"5 mi = 8.04672 km\".","type":"string"},"formula":{"description":"Relation used, e.g. \"1 mi = 1.609344 km\".","type":"string"},"factor":{"description":"Multiplier from from_unit to to_unit (result = value × factor); absent for non-linear conversions.","type":"number"},"conversion_table":{"description":"The input value expressed in every supported density unit (6 significant figures), keyed by unit symbol.","type":"object"}}},"formula":"result = value × factor, factor = (1 from_unit in kg/m3) / (1 to_unit in kg/m3)","method":"Water at 4 °C has a density of about 1 g/cm³ = 1000 kg/m³ = 62.428 lb/ft³ = 8.345 lb/US gal; specific gravity is density divided by that of water.","sources":[{"name":"NIST Special Publication 811 – Guide for the Use of the International System of Units (SI), Appendix B conversion factors","url":"https://www.nist.gov/pml/special-publication-811","type":"standard","retrieved_at":"2026-09-23"},{"name":"BIPM – The International System of Units (SI Brochure, 9th edition)","url":"https://www.bipm.org/en/publications/si-brochure","type":"standard","retrieved_at":"2026-09-23"},{"name":"Wikipedia – Conversion of units","url":"https://en.wikipedia.org/wiki/Conversion_of_units","type":"reference","retrieved_at":"2026-09-23"}],"freshness":{"type":"static","max_age_seconds":null,"note":"Deterministic formula with fixed constants; results never go stale. Inputs supplied by the caller determine the output."},"examples":[{"name":"1 g/cm³ (water) to lb/ft³","inputs":{"value":1,"from_unit":"g/cm3","to_unit":"lb/ft3"},"expected":{"result":62.427961,"formula":"1 g/cm³ = 62.42796058 lb/ft³","conversion_table":{"kg/m3":1000,"lb/gal_us":8.3454,"lb/in3":0.0361273}},"url":"https://tttkmbb.com/api/v1/calculate/density?value=1&from_unit=g%2Fcm3&to_unit=lb%2Fft3"},{"name":"7850 kg/m³ (steel) to lb/ft³","inputs":{"value":7850,"from_unit":"kg/m3","to_unit":"lb/ft3"},"expected":{"result":490.059491,"conversion_table":{"g/cm3":7.85,"lb/in3":0.283599}},"url":"https://tttkmbb.com/api/v1/calculate/density?value=7850&from_unit=kg%2Fm3&to_unit=lb%2Fft3"}],"faq":[{"q":"Are g/cm³, g/mL and kg/L the same?","a":"Yes, all three equal 1000 kg/m³ exactly because 1 mL = 1 cm³ and 1 L = 1 dm³."},{"q":"How do I convert a weight to a volume?","a":"Divide mass by density: volume = mass / density (e.g. 5 kg of water ÷ 1 kg/L = 5 L). Convert the units first so mass, volume and density agree."}],"tags":["density converter","g/cm3 to kg/m3","kg/m3 to lb/ft3","lb/gal","specific gravity"],"related":[{"calculator_id":"mass","reason":"Mass units used in density."},{"calculator_id":"volume","reason":"Volume units used in density."},{"calculator_id":"molarity","reason":"Molar concentration instead of mass density."}],"links":{"html":"https://tttkmbb.com/conversion/density","markdown":"https://tttkmbb.com/conversion/density.md","json":"https://tttkmbb.com/conversion/density.json","api":"https://tttkmbb.com/api/v1/calculate/density","schema":"https://tttkmbb.com/api/v1/calculators/density","openapi":"https://tttkmbb.com/openapi.json","mcp":"https://tttkmbb.com/mcp"},"version":"v1","updated_at":"2026-09-23"},"timestamp":"2026-09-23T23:23:56Z","next_actions":[{"tool":"run_calculator","calculator_id":"density","reason":"Run Density Converter with the inputs above."}],"links":{"markdown":"https://tttkmbb.com/conversion/density.md"}}