Profitability Ratios¶
Measures how efficiently a company generates profit from its resources.
Margin Ratios¶
gross_margin¶
Formula: Gross Profit / Revenue
operating_margin¶
Formula: EBIT / Revenue
ebitda_margin¶
Formula: EBITDA / Revenue
net_profit_margin¶
Formula: Net Income / Revenue
Return Ratios¶
roe — Return on Equity¶
Formula: Net Income / Avg. Shareholders' Equity
Warning
Pass average equity (beginning + ending / 2), not ending-period equity.
roa — Return on Assets¶
Formula: Net Income / Avg. Total Assets
roic — Return on Invested Capital¶
Formula: NOPAT / Invested Capital
roce — Return on Capital Employed¶
Formula: EBIT / (Total Assets − Current Liabilities)
rote — Return on Tangible Equity¶
nopat — Net Operating Profit After Tax¶
Formula: EBIT × (1 − Tax Rate)
invested_capital¶
Formula: Total Equity + Total Debt − Cash
Decomposition¶
du_pont_3 — 3-Factor DuPont¶
Returns: {'net_margin': ..., 'asset_turnover': ..., 'leverage': ..., 'roe': ...}