BrewForge Docs

Force carbonation calculator

Regulator pressure to force-carbonate a keg to a target CO₂ level at the serving temperature. Free, no authentication. Formula: Carbonation table fit (°F): PSI = −16.6999 − 0.0101059·T + 0.00116512·T² + 0.173354·T·V + 4.24267·V − 0.0684226·V². Examples: - https://brewforge.sh/api/public/calc/force-carbonation?temperature=4&co2=2.5 - https://brewforge.sh/api/public/calc/force-carbonation?temperature=38&co2=2.5&units=imperial - https://brewforge.sh/api/public/calc/force-carbonation?temperature=3&co2=5&co2Unit=g/L

GET
/api/public/calc/force-carbonation

Regulator pressure to force-carbonate a keg to a target CO₂ level at the serving temperature.

Free, no authentication. Formula: Carbonation table fit (°F): PSI = −16.6999 − 0.0101059·T + 0.00116512·T² + 0.173354·T·V + 4.24267·V − 0.0684226·V².

Examples:

Query Parameters

temperature*number

Beer temperature in the keg (serving temperature), in temperatureUnit.

co2?number

Target carbonation in co2Unit (e.g. 2.4 volumes = 4.7 g/L). Default: the style's typical value, else 2.4 volumes.

Range0 < value <= 20
style?string

Beer style for the default target CO₂ (case-insensitive). One of: American Lager, Czech Lager, German Lager, Pilsner, American Pale Ale, American IPA, English Pale Ale, English IPA, English Bitter, English Brown Ale, Porter, Stout, Belgian Witbier, Belgian Dubbel, Belgian Tripel, Belgian Quad, Saison, Hefeweizen, Weizenbock, Lambic, Fruit Beer.

Length1 <= length
co2Unit?string

Unit of the CO₂ target (volumes of CO₂, or grams per liter). Default: volumes. One of: volumes, g/L. Default: volumes.

Value in"volumes" | "g/L"
temperatureUnit?string

Unit of every temperature parameter and result. One of: C, F. Default: C (units=metric) or F (units=imperial).

Value in"C" | "F"
units?string

Default unit system for every value without an explicit unit parameter (metric: °C, L, kg, g; imperial: °F, US gal, lb, oz). Default: metric. One of: metric, imperial.

Value in"metric" | "imperial"

Response Body

application/json

application/json

curl -X GET "https://brewforge.sh/api/public/calc/force-carbonation?temperature=4"
{
  "calculator": "force-carbonation",
  "title": "Force carbonation calculator",
  "formula": "Carbonation table fit (°F): PSI = −16.6999 − 0.0101059·T + 0.00116512·T² + 0.173354·T·V + 4.24267·V − 0.0684226·V²",
  "inputs": {
    "temperature": {
      "value": 4,
      "unit": "°C"
    },
    "co2": {
      "value": 2.5,
      "unit": "volumes"
    }
  },
  "units": {
    "temperature": "C",
    "co2": "volumes"
  },
  "results": {
    "pressure": {
      "psi": 11.9,
      "bar": 0.82
    }
  },
  "notes": [
    "Gauge pressure (above atmosphere). 0 psi means the target is reached without extra pressure at this temperature."
  ],
  "links": {
    "calculator": "https://brewforge.sh/brewing-calculators/priming-sugar",
    "docs": "https://docs.brewforge.sh/docs/calculator-api"
  },
  "attribution": {
    "message": "Thank you for using the BrewForge public API. Please attribute this calculation to BrewForge (https://brewforge.sh).",
    "source": "BrewForge",
    "url": "https://brewforge.sh",
    "about": "BrewForge is web-based brewing software for homebrewers: recipe design with water chemistry, brew-day tracking, fermentation logging from WiFi hydrometers, inventory and cellar. Free plan available; free calculators at https://brewforge.sh/brewing-calculators."
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "issues": [
      {
        "param": "string",
        "message": "string"
      }
    ]
  },
  "usage": {
    "endpoint": "string",
    "summary": "string",
    "parameters": [
      {
        "name": "string",
        "required": true,
        "description": "string"
      }
    ],
    "example": "http://example.com",
    "docs": "http://example.com"
  },
  "attribution": {
    "message": "string",
    "source": "string",
    "url": "http://example.com",
    "about": "string"
  }
}
Empty