# FEUrea

Status: WEDGE
Price: $0.005 USDC
`GET /api/calc/feurea`
HTML: https://magentlab.com/docs/feurea
Markdown: https://magentlab.com/docs/feurea.md

Not a medical device. Not a diagnosis, dose, or listing recommendation.

## What it computes

Compute fractional excretion of urea (FEUN) from BUN, urine urea nitrogen, plasma creatinine, and urine creatinine.

## When to use

When diuretics make FENa unhelpful and an agent must not invent FEUrea from a language model.

## When not to use

- Not a diagnosis of prerenal azotemia or ATN. Carvounis bands are published FEUN cut-points (low ≤35%, high >35%), not a clinical order.
- FENa is a separate tool. This calculator does not compute FENa.
- Diuretics and CKD can change interpretation. Arithmetic only from the four laboratory values.

## Formula

```
FEUrea_percent = 100 * (urine_urea_mg_dl * plasma_creatinine_mg_dl) / (bun_mg_dl * urine_creatinine_mg_dl)
```

## Citation

Significance of the fractional excretion of urea in the differential diagnosis of acute renal failure
Carvounis CP, Nisar S, Guro-Razuman S
Kidney Int. 2002;62(6):2223-2229
DOI: [10.1046/j.1523-1755.2002.00683.x](https://doi.org/10.1046/j.1523-1755.2002.00683.x)

## Worked example

### UUN 200, BUN 20, UCr 100, PCr 2

Given: `bun_mg_dl=20, creatinine_mg_dl=2, urine_creatinine_mg_dl=100, urine_urea_mg_dl=200`

1. FEUrea = 100 * (200 * 2) / (20 * 100)
2. = 40000 / 2000 = 20.0
3. Carvounis band ≤35 → low (published cut-point, not a diagnosis)


## Parameters

- `bun_mg_dl` (number, required): Blood urea nitrogen in mg/dL (1-200). Same units as urine urea nitrogen.
- `urine_urea_mg_dl` (number, required): Urine urea nitrogen in mg/dL (1-2000). Same units as BUN.
- `creatinine_mg_dl` (number, optional): Plasma creatinine in mg/dL. Provide this or creatinine_umol_l.
- `creatinine_umol_l` (number, optional): Plasma creatinine in µmol/L. Converted as mg/dL = µmol/L / 88.42.
- `urine_creatinine_mg_dl` (number, optional): Urine creatinine in mg/dL (1-500). Provide this or urine_creatinine_umol_l.
- `urine_creatinine_umol_l` (number, optional): Urine creatinine in µmol/L (88-44210). Converted as mg/dL = µmol/L / 88.42.

## Bulk (POST)

POST the same path with a JSON items array. Price is n times the GET unit. Invalid items return HTTP 400 before settlement.

Method: `POST /api/calc/feurea`
Max items: 25
Price: unit_amount * n (unit 5000 atomic)
Status: PREVIEW

- 1 to 25 items. Each item uses the same keys as the GET query parameters.
- The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
- HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
- Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
- x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.

Example request:

```json
{
  "items": [
    {
      "bun_mg_dl": "20",
      "creatinine_mg_dl": "2",
      "urine_creatinine_mg_dl": "100",
      "urine_urea_mg_dl": "200"
    },
    {
      "bun_mg_dl": "20",
      "creatinine_mg_dl": "2",
      "urine_creatinine_mg_dl": "100",
      "urine_urea_mg_dl": "200"
    }
  ]
}
```

Human paywall (two-item fixture): https://api.magentlab.com/paywall/bulk/feurea

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/feurea",
  "items": [
    {
      "units": "%",
      "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
      "citation": {
        "authors": "Carvounis CP, Nisar S, Guro-Razuman S",
        "doi": "10.1046/j.1523-1755.2002.00683.x",
        "id": "carvounis-2002",
        "source": "Kidney Int. 2002;62(6):2223-2229",
        "title": "Significance of the fractional excretion of urea in the differential diagnosis of acute renal failure"
      },
      "formula": "carvounis",
      "formula_expression": "FEUrea_percent = 100 * (urine_urea_mg_dl * plasma_creatinine_mg_dl) / (bun_mg_dl * urine_creatinine_mg_dl)",
      "creatinine_mg_dl": 2.0,
      "urine_creatinine_mg_dl": 100.0,
      "bun_mg_dl": 20.0,
      "carvounis_band": "low",
      "feurea_percent": 20.0,
      "urine_urea_mg_dl": 200.0
    },
    {
      "units": "%",
      "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
      "citation": {
        "authors": "Carvounis CP, Nisar S, Guro-Razuman S",
        "doi": "10.1046/j.1523-1755.2002.00683.x",
        "id": "carvounis-2002",
        "source": "Kidney Int. 2002;62(6):2223-2229",
        "title": "Significance of the fractional excretion of urea in the differential diagnosis of acute renal failure"
      },
      "formula": "carvounis",
      "formula_expression": "FEUrea_percent = 100 * (urine_urea_mg_dl * plasma_creatinine_mg_dl) / (bun_mg_dl * urine_creatinine_mg_dl)",
      "creatinine_mg_dl": 2.0,
      "urine_creatinine_mg_dl": 100.0,
      "bun_mg_dl": 20.0,
      "carvounis_band": "low",
      "feurea_percent": 20.0,
      "urine_urea_mg_dl": 200.0
    }
  ]
}
```

## Response fields

- `formula` (string): carvounis
- `formula_expression` (string): Exact expression used
- `bun_mg_dl` (number): BUN used in the equation
- `urine_urea_mg_dl` (number): Urine urea nitrogen used
- `creatinine_mg_dl` (number): Normalized plasma creatinine
- `urine_creatinine_mg_dl` (number): Normalized urine creatinine
- `feurea_percent` (number): Fractional excretion of urea in percent, 2 decimal places
- `carvounis_band` (string): Published Carvounis 2002 FEUN cut-point: low (≤35) or high (>35). Not a diagnosis.
- `units` (string): %
- `citation` (object): Kidney Int 2002 citation
- `disclaimer` (string): Not-a-device notice

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "units": "%",
  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
  "citation": {
    "authors": "Carvounis CP, Nisar S, Guro-Razuman S",
    "doi": "10.1046/j.1523-1755.2002.00683.x",
    "id": "carvounis-2002",
    "source": "Kidney Int. 2002;62(6):2223-2229",
    "title": "Significance of the fractional excretion of urea in the differential diagnosis of acute renal failure"
  },
  "formula": "carvounis",
  "formula_expression": "FEUrea_percent = 100 * (urine_urea_mg_dl * plasma_creatinine_mg_dl) / (bun_mg_dl * urine_creatinine_mg_dl)",
  "creatinine_mg_dl": 2.0,
  "urine_creatinine_mg_dl": 100.0,
  "bun_mg_dl": 20.0,
  "carvounis_band": "low",
  "feurea_percent": 20.0,
  "urine_urea_mg_dl": 200.0
}
```

## Errors

- HTTP 400 `invalid_creatinine`: creatinine_mg_dl (0.1-20) or creatinine_umol_l (9-1768) is required Returned before settlement; you are not charged.
- HTTP 400 `invalid_bun`: bun_mg_dl must be a number from 1 to 200. Returned before settlement; you are not charged.
- HTTP 400 `invalid_urine_urea`: urine_urea_mg_dl must be a number from 1 to 2000. Returned before settlement; you are not charged.
- HTTP 400 `invalid_urine_creatinine`: urine_creatinine_mg_dl (1-500) or urine_creatinine_umol_l (88-44210) is required. Returned before settlement; you are not charged.
- HTTP 400 `invalid_items`: POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
- HTTP 400 `invalid_item_count`: items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
- HTTP 400 `invalid_item`: each items entry must be a JSON object Returned before settlement; you are not charged.
- HTTP 402 `payment_required`: Missing or invalid PAYMENT-SIGNATURE; decode the PAYMENT-REQUIRED header
- HTTP 409 `payment_in_progress`: The same authorization nonce is already being settled; retry shortly
- HTTP 429 `rate_limited`: Too many requests from this client
- HTTP 503 `settlement_uncertain`: Settlement is unconfirmed; retry with the same PAYMENT-SIGNATURE
- HTTP 503 `settle_failed`: Settlement failed; retry with the same PAYMENT-SIGNATURE shortly
- HTTP 503 `facilitator_unavailable`: Payment facilitator unavailable
- HTTP 503 `facilitator_misconfigured`: Payment facilitator is not configured
- HTTP 503 `facilitator_unauthorized`: Payment facilitator rejected credentials
- HTTP 503 `ledger_unavailable`: Payment ledger unavailable
- HTTP 503 `payment_unavailable`: Payment processing unavailable

## Related tools

- [Cockcroft–Gault CrCl](https://magentlab.com/docs/crcl) — Compute Cockcroft–Gault creatinine clearance in mL/min using total body weight.
- [CKD-EPI 2021 eGFR](https://magentlab.com/docs/egfr) — Compute race-free CKD-EPI 2021 creatinine eGFR in mL/min/1.73m2.
- [FENa](https://magentlab.com/docs/fena) — Compute fractional excretion of sodium from plasma and urine sodium and creatinine using Espinel 1976.

## Also searched as

- fractional excretion of urea
- FEUN
- FEUrea
- Carvounis FEUN
- urine urea nitrogen fraction
- fractional urea excretion

## Payment

Required query parameters must be present and valid. Invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s.

- GET the tool with Accept: application/json (do not send Accept: text/html unless you want the human paywall).
- HTTP 402 means you have not paid. Decode the base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote.
- Sign EIP-3009 with validBefore = now + accepts[0].maxTimeoutSeconds (600 seconds). That window starts when you sign and must cover wallet confirmation plus CDP verify and settle. Magent retries transient facilitator 429/5xx before answering.
- Retry the same URL with PAYMENT-SIGNATURE (base64 JSON echoing accepted, payload, and extensions when present).
- Success is HTTP 200 JSON plus PAYMENT-RESPONSE. Settlement happens before the tool runs. HTTP 503 settlement_uncertain or settle_failed: retry the same PAYMENT-SIGNATURE. Mint a new nonce only after a new HTTP 402.

## Guarantees

- Invalid query parameters return HTTP 400 before settlement. You are not charged.
- Settlement finishes before the tool executes. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
- HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
- Execution is timeout-bounded and concurrency-capped.
- Calculator inputs are not persisted. Request logs store path without query.
