Skip to content

Accounting

Financial ratios and DuPont

Liquidity, activity, solvency, profitability and three- and five-step DuPont ratios.

Model id
accounting.financial_ratios, version 1
Domain
Accounting
Evidence
standard
Cost class
instant: A closed-form calculation; a hosted run may take up to 2 seconds.

Formula

ROE=NI/EavgROE=NI/E_{\mathrm{avg}}ROE=(NI/S)(S/Aavg)(Aavg/Eavg)ROE=(NI/S)(S/A_{\mathrm{avg}})(A_{\mathrm{avg}}/E_{\mathrm{avg}})ROE=(NI/EBT)(EBT/EBIT)(EBIT/S)×(S/Aavg)(Aavg/Eavg)\begin{aligned} ROE &= (NI/EBT)(EBT/EBIT)(EBIT/S) \\ &\quad \times (S/A_{\mathrm{avg}})(A_{\mathrm{avg}}/E_{\mathrm{avg}}) \end{aligned}

Where

ROEROE
Return on equity roe
NINI
Net income attributable to common shareholders net_income
EavgE_{\mathrm{avg}}
Average common equity over the period average_equity
SS
Revenue (sales) for the period revenue
AavgA_{\mathrm{avg}}
Average total assets over the period average_assets
EBTEBT
Income before taxes pretax_income
EBITEBIT
Operating income before interest and taxes ebit

Each symbol's field is named beside it; the inputs and outputs, with their units and bounds, are under Variables, and the citations give each formula's source.

Variables

Rates, returns and yields are decimals: 0.05 is five percent. Bounds in brackets include their end; in parentheses they exclude it.

Inputs

Inputs
NameDescription
Current assetscurrent_assetsmoney · [0, 1e+12]Period-end current assets
Inventoryinventorymoney · [0, 1e+12]Period-end inventory
Prepaymentsprepaymentsmoney · [0, 1e+12]Period-end prepaid expenses excluded from quick assets
Cashcashmoney · [0, 1e+12]Period-end cash and cash equivalents
Marketable securitiesmarketable_securitiesmoney · [0, 1e+12]Period-end short-term marketable securities
Current liabilitiescurrent_liabilitiesmoney · [0, 1e+12]Period-end current liabilities
Revenuerevenuemoney · [0, 1e+12]Revenue for the period; all sales assumed on credit for receivables turnover
Cost of goods soldcost_of_goods_soldmoney · [0, 1e+12]Cost of goods sold, positive expense
Purchasespurchasesmoney · [0, 1e+12]Credit purchases for the period, positive outlay
Average receivablesaverage_receivablesmoney · [0, 1e+12]Average trade receivables over the period
Average inventoryaverage_inventorymoney · [0, 1e+12]Average inventory over the period
Average payablesaverage_payablesmoney · [0, 1e+12]Average trade payables over the period
Average assetsaverage_assetsmoney · [0, 1e+12]Average total assets over the period
Average equityaverage_equitymoney · [-1e+12, 1e+12]Average common equity over the period; may be negative
Total assetstotal_assetsmoney · [0, 1e+12]Period-end total assets
Total debttotal_debtmoney · [0, 1e+12]Period-end interest-bearing debt; excludes non-debt liabilities
Equityequitymoney · [-1e+12, 1e+12]Period-end book common equity; may be negative
EBITebitmoney · [-1e+12, 1e+12]Operating income before interest and taxes
Interest expenseinterest_expensemoney · [0, 1e+12]Interest expense for the period
Pretax incomepretax_incomemoney · [-1e+12, 1e+12]Income before taxes for the period
Net incomenet_incomemoney · [-1e+12, 1e+12]After-tax income attributable to common shareholders
Daysdayscount · [1, 366]Calendar days in the reporting period

Outputs

Outputs
NameDescription
Current ratiocurrent_ratioratio · [-1e+06, 1e+06]Current assets / current liabilities
Quick ratioquick_ratioratio · [-1e+06, 1e+06](Current assets - inventory - prepayments) / current liabilities
Cash ratiocash_ratioratio · [-1e+06, 1e+06](Cash + marketable securities) / current liabilities
Receivables turnoverreceivables_turnoverratio · [-1e+06, 1e+06]Revenue / average receivables
Inventory turnoverinventory_turnoverratio · [-1e+06, 1e+06]COGS / average inventory
Payables turnoverpayables_turnoverratio · [-1e+06, 1e+06]Credit purchases / average payables
Receivables daysreceivables_daysratio · [-1e+06, 1e+06]Days in period * average receivables / revenue
Inventory daysinventory_daysratio · [-1e+06, 1e+06]Days in period * average inventory / COGS
Payables dayspayables_daysratio · [-1e+06, 1e+06]Days in period * average payables / credit purchases
Asset turnoverasset_turnoverratio · [-1e+06, 1e+06]Revenue / average total assets
Debt to equitydebt_to_equityratio · [-1e+06, 1e+06]Period-end interest-bearing debt / book equity
Debt to assetsdebt_to_assetsratio · [-1e+06, 1e+06]Period-end interest-bearing debt / total assets
Interest coverageinterest_coverageratio · [-1e+06, 1e+06]EBIT / interest expense
Financial leveragefinancial_leverageratio · [-1e+06, 1e+06]Average assets / average equity; DuPont equity multiplier
Gross margingross_marginratio · [-1e+06, 1e+06](Revenue - COGS) / revenue
Operating marginoperating_marginratio · [-1e+06, 1e+06]EBIT / revenue
Net marginnet_marginratio · [-1e+06, 1e+06]Net income / revenue
ROAroaratio · [-1e+06, 1e+06]Net income / average assets
ROEroeratio · [-1e+06, 1e+06]Net income / average common equity
Tax burdentax_burdenratio · [-1e+06, 1e+06]Net income / pretax income
Interest burdeninterest_burdenratio · [-1e+06, 1e+06]Pretax income / EBIT
Dupont three stepdupont_three_stepratio · [-1e+06, 1e+06]Net margin * asset turnover * financial leverage
Dupont five stepdupont_five_stepratio · [-1e+06, 1e+06]Tax burden * interest burden * operating margin * asset turnover * financial leverage

Calculator

Run the model on your own inputs, starting from its example. Rates are decimals: 0.05 is five percent. The run goes to the pyeconomics API on this site: your values travel only in the request, and nothing is stored.

Loading the calculator…

Worked example

Example consistent_statements. Inputs:

{
  "average_assets": 800,
  "average_equity": 400,
  "average_inventory": 150,
  "average_payables": 100,
  "average_receivables": 100,
  "cash": 40,
  "cost_of_goods_sold": 600,
  "current_assets": 200,
  "current_liabilities": 100,
  "days": 365,
  "ebit": 200,
  "equity": 450,
  "interest_expense": 40,
  "inventory": 50,
  "marketable_securities": 10,
  "net_income": 120,
  "prepayments": 10,
  "pretax_income": 160,
  "purchases": 500,
  "revenue": 1000,
  "total_assets": 900,
  "total_debt": 300
}

Outputs:

{
  "asset_turnover": 1.25,
  "cash_ratio": 0.5,
  "current_ratio": 2,
  "debt_to_assets": 0.3333333333333333,
  "debt_to_equity": 0.6666666666666666,
  "dupont_five_step": 0.30000000000000004,
  "dupont_three_step": 0.3,
  "financial_leverage": 2,
  "gross_margin": 0.4,
  "interest_burden": 0.8,
  "interest_coverage": 5,
  "inventory_days": 91.25,
  "inventory_turnover": 4,
  "net_margin": 0.12,
  "operating_margin": 0.2,
  "payables_days": 73,
  "payables_turnover": 5,
  "quick_ratio": 1.4,
  "receivables_days": 36.5,
  "receivables_turnover": 10,
  "roa": 0.15,
  "roe": 0.3,
  "tax_burden": 0.75
}

Assumptions

  • All statement items share one currency and reporting period; averages are supplied, not inferred.
  • Receivables turnover assumes all revenue is credit sales; payables turnover uses credit purchases. Days uses the supplied period length.
  • Debt means interest-bearing debt, not total liabilities. Quick assets exclude inventory and prepayments; cash ratio includes short-term securities. These definitions vary across sources.
  • The schema describes the numerator and denominator of every output. Five-step DuPont returns each tax, interest, operating and turnover component.

Limitations

  • Zero denominators yield null with a warning; any ratio or DuPont product outside +/-1e6 also yields null. Other defined measures remain available.
  • Inconsistent statement inputs are not reconciled; negative equity is allowed. DuPont identities require defined components, including nonzero revenue/assets and EBIT/pretax income for five-step.

Evidence

Status: standard. Textbook consensus, such as bond duration or the CAPM formula.

Every model declares one status: standard (textbook consensus), practitioner (a widely used convention), contested (under active debate), rejected (failed out of sample) or historical (a superseded methodology).

Syllabus

The 2027 CFA® Program's topic areas this model relates to, as factual tags. Each links to CFA Institute's page for its level; pyeconomics holds none of the curriculum's text.

Citations

  1. Damodaran, A. (2012). Investment Valuation, 3rd ed. Wiley. https://pages.stern.nyu.edu/~adamodar/pdfiles/eqnotes/finstat.pdf (Financial statement analysis: profitability, leverage and efficiency). ISBN 9781118011522

Changelog

  • Version 1: First version.

Use it elsewhere

Documentation
The model's reference page
REST API
GET or POST /v1/models/accounting.financial_ratios/run
MCP tool
run_model with the model's id, accounting.financial_ratios. Connect an assistant
Command line
pyeconomics models run accounting.financial_ratios --help

The worked example, from Python and from the command line:

Python
import pyeconomics

inputs = {
    "average_assets": 800,
    "average_equity": 400,
    "average_inventory": 150,
    "average_payables": 100,
    "average_receivables": 100,
    "cash": 40,
    "cost_of_goods_sold": 600,
    "current_assets": 200,
    "current_liabilities": 100,
    "days": 365,
    "ebit": 200,
    "equity": 450,
    "interest_expense": 40,
    "inventory": 50,
    "marketable_securities": 10,
    "net_income": 120,
    "prepayments": 10,
    "pretax_income": 160,
    "purchases": 500,
    "revenue": 1000,
    "total_assets": 900,
    "total_debt": 300,
}
result = pyeconomics.run("accounting.financial_ratios", inputs)
print(result.to_json())
Command line
pyeconomics models run accounting.financial_ratios --inputs - <<'JSON'
{
  "average_assets": 800,
  "average_equity": 400,
  "average_inventory": 150,
  "average_payables": 100,
  "average_receivables": 100,
  "cash": 40,
  "cost_of_goods_sold": 600,
  "current_assets": 200,
  "current_liabilities": 100,
  "days": 365,
  "ebit": 200,
  "equity": 450,
  "interest_expense": 40,
  "inventory": 50,
  "marketable_securities": 10,
  "net_income": 120,
  "prepayments": 10,
  "pretax_income": 160,
  "purchases": 500,
  "revenue": 1000,
  "total_assets": 900,
  "total_debt": 300
}
JSON