{"uid":"cap_ZiFD8wl9et5dLtdHtAVE8","slug":"ideal-gas-law-calculator-pv-nrt-9de52996","name":"Ideal Gas Law Calculator (PV=nRT)","description":"Ideal gas law PV = nRT: give any three of pressure, volume, moles and temperature and solve the fourth, in common units.","url":"https://chemistry-calc.x402tookit.com/ideal-gas?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"moles":{"type":"number","description":"Amount in moles"},"volume":{"type":"number","description":"Volume"},"pressure":{"type":"number","description":"Pressure"},"volumeUnit":{"type":"string","description":"L (default), mL or m3"},"temperature":{"type":"number","description":"Temperature"},"pressureUnit":{"type":"string","description":"atm (default), kPa, Pa, bar, mmHg, torr or psi"},"temperatureUnit":{"type":"string","description":"K (default), C or F"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"note":{},"moles":{"type":["null","number"]},"source":{"type":["null","string"]},"volume":{"type":["null","object"],"properties":{"L":{"type":["null","number"]},"m3":{"type":["null","number"]},"mL":{"type":["null","number"]}}},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"pressure":{"type":["null","object"],"properties":{"atm":{"type":["null","number"]},"bar":{"type":["null","number"]},"kPa":{"type":["null","number"]},"psi":{"type":["null","number"]},"mmHg":{"type":["null","number"]}}},"solvedFor":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"temperature":{"type":["null","object"],"properties":{"C":{"type":["null","number"]},"F":{"type":["null","number"]},"K":{"type":["null","number"]}}},"molarVolumeAtThisConditionLPerMol":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_skc2SXuOalId_fhVzON7M","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Solves for any one unknown in the ideal gas law equation PV=nRT given the other three values, supporting multiple common units for each quantity.","exampleAgentPrompt":"Using the ideal gas law, solve for the volume of 2.5 moles of gas at a temperature of 25°C and a pressure of 1.5 atm — give me the answer in liters.","exampleUseCases":[{"title":"Gas volume in a sealed container","prompt":"I have 3 moles of an ideal gas at 100°C and 2 atm pressure. What volume in liters would it occupy?"},{"title":"Finding pressure in a chemistry lab","prompt":"A 500 mL container holds 0.8 moles of gas at 298 K. What's the pressure in kPa according to the ideal gas law?"},{"title":"Solving for moles from room conditions","prompt":"How many moles of gas are in a 22.4 L container at 0°C and 1 atm? Solve using the ideal gas law."}],"resultDescription":"Returns the solved variable (pressure, volume, moles, or temperature) along with all four quantities expressed in multiple unit variants (e.g. pressure in atm, kPa, bar, psi, mmHg; volume in L, mL, m³; temperature in K, C, F), plus molar volume at the given conditions, a plain-language summary, and which variable was solved for.","failureModes":["Missing more than one variable — endpoint requires exactly three of four inputs to solve for the fourth","Invalid or unrecognized unit strings cause a bad request","Temperature provided in Kelvin below absolute zero returns an error or invalid result","Numeric values outside physically meaningful ranges may return degraded or null results","Missing required input object structure returns a schema validation error"],"whenToPreferThis":"Choose this endpoint when you need to solve the ideal gas law equation PV=nRT for any single unknown variable, especially when flexible unit support (atm, kPa, psi, bar, mmHg, L, mL, m³, K, C, F) is needed. Prefer it over manual calculation or general-purpose math endpoints when chemistry-specific context and multi-unit output is desired. It is ideal for educational, lab, or engineering scenarios involving ideal gas behavior.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:34:29.755Z","isFirstParty":false,"canonicalSlug":"ideal-gas-law-calculator-pv-nrt-9de52996"}