Calculators
Discounted cash flow (DCF) API
Discounted cash flow valuation EV = sum(FCFt/(1+r)^t) + TV/(1+r)^n with a Gordon terminal value TV = FCFn*(1+g)/(r-g); optional netDebt and shares bridge enterprise value to equity value and value per share, with a per-year PV table. Answers 'DCF valuation of these cash flows','enterprise value from free cash flow','intrinsic value per share via DCF'.
Price$0.01per request
MethodPOST
Route/v1/calc/val-dcf
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calcvaluationdcfenterprise-valuefree-cash-flowterminal-valueintrinsic-valuefinance
API URL
Integration docshttps://x402.hexl.dev/v1/calc/val-dcfExample request
{
"cashflows": [
100,
110,
121
],
"discountRate": 0.1,
"terminalGrowth": 0.03,
"netDebt": 200,
"shares": 100
}Example response
{
"enterpriseValue": 1610.3896,
"pvExplicit": 272.7273,
"terminalValue": 1780.4286,
"pvTerminal": 1337.6623,
"formula": "EV = sum(FCFt/(1+r)^t) + TV/(1+r)^n, TV = FCFn*(1+g)/(r-g)",
"breakdown": [
{
"year": 1,
"cashflow": 100,
"pv": 90.9091
},
{
"year": 2,
"cashflow": 110,
"pv": 90.9091
},
{
"year": 3,
"cashflow": 121,
"pv": 90.9091
}
],
"equityValue": 1410.3896,
"valuePerShare": 14.1039
}Input schema
{
"type": "object",
"required": [
"cashflows",
"discountRate"
],
"properties": {
"cashflows": {
"type": "array",
"items": {
"type": "number"
},
"description": "Projected free cash flows, year 1 first",
"examples": [
[
100,
110,
121
]
]
},
"discountRate": {
"type": "number",
"description": "WACC as a decimal",
"examples": [
0.1
]
},
"terminalGrowth": {
"type": "number",
"description": "Perpetual growth for terminal value",
"examples": [
0.03
]
},
"netDebt": {
"type": "number",
"examples": [
200
]
},
"shares": {
"type": "number",
"examples": [
100
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}