Catalog/tax-depreciation

Calculators

Depreciation schedule (SL & declining balance) API

Generate a depreciation schedule: straight-line = (cost - salvage)/life, or 200%/150% declining-balance (MACRS-style) not falling below salvage, returning the full year-by-year schedule, total depreciation, and ending book value. Answers 'straight-line depreciation on a $10k asset','declining-balance schedule','annual depreciation expense','book value after N years'.

Price$0.01per request
MethodPOST
Route/v1/calc/tax-depreciation
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
taxdepreciationstraight-linedeclining-balancemacrsassetaccountingcalc
API URLhttps://x402.hexl.dev/v1/calc/tax-depreciation
Integration docs
Example request
{
  "cost": 10000,
  "life": 5,
  "salvage": 1000,
  "method": "straight-line"
}
Example response
{
  "cost": 10000,
  "salvage": 1000,
  "life": 5,
  "method": "straight-line",
  "totalDepreciation": 9000,
  "endingBookValue": 1000,
  "schedule": [
    {
      "year": 1,
      "depreciation": 1800,
      "bookValue": 8200
    },
    {
      "year": 2,
      "depreciation": 1800,
      "bookValue": 6400
    },
    {
      "year": 3,
      "depreciation": 1800,
      "bookValue": 4600
    },
    {
      "year": 4,
      "depreciation": 1800,
      "bookValue": 2800
    },
    {
      "year": 5,
      "depreciation": 1800,
      "bookValue": 1000
    }
  ],
  "note": "Estimate. Straight-line = (cost - salvage)/life; declining-balance uses a 200% (default) rate not below salvage."
}
Input schema
{
  "type": "object",
  "required": [
    "cost",
    "life"
  ],
  "properties": {
    "cost": {
      "type": "number",
      "description": "Asset cost in USD",
      "examples": [
        10000
      ]
    },
    "life": {
      "type": "number",
      "description": "Useful life in years (positive integer)",
      "examples": [
        5
      ]
    },
    "method": {
      "type": "string",
      "enum": [
        "straight-line",
        "declining-balance"
      ],
      "examples": [
        "straight-line"
      ]
    },
    "salvage": {
      "type": "number",
      "description": "Salvage value in USD",
      "examples": [
        1000
      ]
    },
    "declineRate": {
      "type": "number",
      "description": "Declining-balance multiplier, default 2 (200%)"
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}