API Endpoint
FIRE Number
Calculate financial independence retire early (FIRE) target using 4% withdrawal rule.
Endpoint
Also supports GET with query parameters.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
annualExpenses | number | — | Annual expenses ($) |
withdrawalRate | number | — | Safe withdrawal rate (%) |
currentSavings | number | — | Current investment portfolio ($) |
annualContribution | number | — | Annual savings amount ($) |
Request Examples
POST (JSON body)
curl -X POST https://likeoptions.com/api/v1/calculate/fire \
-H "Content-Type: application/json" \
-d '{"annualExpenses": 100000, "withdrawalRate": 50000, "currentSavings": 6}'GET (query parameters)
curl "https://likeoptions.com/api/v1/calculate/fire?annualExpenses=100000&withdrawalRate=50000¤tSavings=6"Response
{
"kind": "fire",
"result": {
"primary": 1234.56,
"secondary": [
{ "label": "Example metric", "value": 100, "format": "money" },
{ "label": "Example percent", "value": 5.5, "format": "percent" }
]
}
}When to Use
- Calculate FIRE target number
- Plan early retirement
- Estimate independence timeline
Error Handling
- 400 Bad Request — Invalid input parameters or missing required fields
- 404 Not Found — Unknown calculator kind
- 429 Too Many Requests — Rate limit exceeded (120 req/hour per IP)
- 413 Payload Too Large — Request body exceeds 16 KB
Related Endpoints
View request examples in JavaScript, Python, cURL, and more →
Retirement and financial independence
- 401(k) vs IRAComparison
- Traditional vs Roth 401(k)Comparison
- Retirement calculatorCalculator
- FIRE number calculatorCalculator
- Withdrawal plan calculatorCalculator