# ABV Calculator from Original and Final Gravity

> ABV Calculator from Original and Final Gravity is a paid API for AI agents from cooking-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Calculates alcohol by volume (ABV) for beer, wine, and cider using original and final specific gravity readings, returning both simple and advanced formula results plus apparent attenuation.

## Facts

- Endpoint: GET https://cooking-calc.x402tookit.com/abv-gravity?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/abv-calculator-from-original-and-final-gravity-d9fe4480
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O-xOBlrYXE-NnvQllxb4Y

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability abv-calculator-from-original-and-final-gravity-d9fe4480
```

Example prompt: My homebrew started at an original gravity of 1.052 and finished at 1.012 — can you calculate the ABV using both the simple and advanced formulas, and tell me the apparent attenuation?

## When to prefer this

Choose this endpoint when you need to compute ABV from hydrometer or refractometer gravity readings for fermented beverages (beer, wine, cider). It is uniquely useful because it returns both simple and advanced formula results alongside apparent attenuation, making it suitable for homebrewers who want to cross-check methods. Prefer this over generic unit converters or nutrition databases when your input is raw specific gravity numbers from fermentation.

## Known failure modes

- Final gravity above original gravity returns an error or invalid result
- Gravity values outside the accepted range (OG 1.000–1.200, FG 0.980–1.200) may be rejected
- Missing required query parameters originalGravity or finalGravity returns a 400-level error
- Non-numeric gravity values cause a validation failure
- Extremely high gravity readings typical of mead or liqueur may fall outside expected range

## How this service works

Beer, wine and cider alcohol by volume from original and final gravity, with both standard formulas and attenuation.

## Output

Returns the calculated ABV as a percentage using both simple and advanced formulas, an ABV range, apparent attenuation percentage, gravity points, the preferred formula recommendation, and metadata such as source and disclaimer notes.

## Request schema (JSON Schema)

```json
{
 "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": [
      "originalGravity",
      "finalGravity"
     ],
     "properties": {
      "finalGravity": {
       "type": "number",
       "description": "Specific gravity after fermentation, 0.980 to 1.200 and not above the original"
      },
      "originalGravity": {
       "type": "number",
       "description": "Specific gravity before fermentation, 1.000 to 1.200, for example 1.050"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "abvPercent": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "finalGravity": {
       "type": [
        "null",
        "number"
       ]
      },
      "gravityPoints": {
       "type": [
        "null",
        "number"
       ]
      },
      "abvRangePercent": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "number"
       }
      },
      "originalGravity": {
       "type": [
        "null",
        "number"
       ]
      },
      "abvSimplePercent": {
       "type": [
        "null",
        "number"
       ]
      },
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/abv-calculator-from-original-and-final-gravity-d9fe4480/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cooking-calc.x402tookit.com](https://www.zero.xyz/host/cooking-calc.x402tookit.com/llms.txt)
