← All tool references

Finance · not_available

Safe Withdrawal Rate Calculator

Translate a portfolio and withdrawal rate into planning income.

Open public tool

Overview

Category
Finance
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/safe-withdrawal-rate-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/safe-withdrawal-rate-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

portfolio · number · required
Enter portfolio balance for this calculation.
withdrawal_rate · number · required
Enter initial withdrawal rate for this calculation.
inflation_rate · number · required
Enter annual inflation assumption for this calculation.
years · number · required
Enter planning horizon for this calculation.
{
    "type": "object",
    "properties": {
        "portfolio": {
            "type": "number",
            "description": "Enter portfolio balance for this calculation.",
            "minimum": 0
        },
        "withdrawal_rate": {
            "type": "number",
            "description": "Enter initial withdrawal rate for this calculation."
        },
        "inflation_rate": {
            "type": "number",
            "description": "Enter annual inflation assumption for this calculation."
        },
        "years": {
            "type": "number",
            "description": "Enter planning horizon for this calculation.",
            "minimum": 1
        }
    },
    "required": [
        "portfolio",
        "withdrawal_rate",
        "inflation_rate",
        "years"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

annual_withdrawal · number
Initial annual withdrawal calculated by the tool.
monthly_withdrawal · number
Initial monthly withdrawal calculated by the tool.
final_year_nominal · number
Inflation-adjusted final-year withdrawal calculated by the tool.
{
    "type": "object",
    "properties": {
        "annual_withdrawal": {
            "type": "number",
            "description": "Initial annual withdrawal calculated by the tool."
        },
        "monthly_withdrawal": {
            "type": "number",
            "description": "Initial monthly withdrawal calculated by the tool."
        },
        "final_year_nominal": {
            "type": "number",
            "description": "Inflation-adjusted final-year withdrawal calculated by the tool."
        }
    },
    "additionalProperties": false
}

Safe Withdrawal Rate Calculator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/safe-withdrawal-rate-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "portfolio": 1000000,
    "withdrawal_rate": 4,
    "inflation_rate": 2.5,
    "years": 30
}'
{
    "ok": true,
    "data": {
        "slug": "safe-withdrawal-rate-calculator",
        "result": {
            "values": {
                "annual_withdrawal": 40000,
                "monthly_withdrawal": 3333.329999999999927240423858165740966796875,
                "final_year_nominal": 81856.300000000002910383045673370361328125
            },
            "display": {
                "display": "40000"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.