Finance Formulas

The Library

Every formula, from first principles.

Not a cheat sheet. Each entry explains why the formula must be true — so under pressure you can rebuild it instead of recalling it.

Showing 78 of 132 formulas

Time Value of Money

Discounting, compounding, annuities and the machinery behind every valuation.

Drill this section →

Quantitative Methods

Returns, dispersion, probability and the statistics that describe risk.

Drill this section →

Geometric Mean Return

core
RG=[∏i=1n(1+Ri)]1/n−1R_G = \left[\prod_{i=1}^{n}(1+R_i)\right]^{1/n} - 1

Time-Weighted Return (TWR)

core
RTW=[(1+R1)(1+R2)⋯(1+Rn)]1/n−1,Ri=ViendVistart−1R_{TW} = \left[(1+R_1)(1+R_2)\cdots(1+R_n)\right]^{1/n} - 1, \qquad R_i = \frac{V_i^{\text{end}}}{V_i^{\text{start}}} - 1

Leveraged Return

core
RL=RP+VBVE (RP−rD)R_L = R_P + \frac{V_B}{V_E}\,(R_P - r_D)

Sample Standard Deviation

core
s=∑i=1n(Ri−Rˉ)2n−1s = \sqrt{\frac{\sum_{i=1}^{n}(R_i - \bar{R})^2}{n-1}}

Coefficient of Variation (CV)

core
CV=sXˉCV = \frac{s}{\bar{X}}

Sharpe Ratio

core
S=Rp−RfσpS = \frac{R_p - R_f}{\sigma_p}

Total Probability Rule

core
P(B)=P(B∣A) P(A)+P(B∣Ac) P(Ac)P(B) = P(B\mid A)\,P(A) + P(B\mid A^{c})\,P(A^{c})

Simple Regression: Slope, Intercept and Prediction

core
b^1=Cov(X,Y)Var(X),b^0=Yˉ−b^1Xˉ,Y^=b^0+b^1X0\hat{b}_1 = \frac{\text{Cov}(X,Y)}{\text{Var}(X)}, \quad \hat{b}_0 = \bar{Y} - \hat{b}_1\bar{X}, \quad \hat{Y} = \hat{b}_0 + \hat{b}_1 X_0

Regression Fit: R², Standard Error of Estimate and F-statistic

core
R2=SSRSST,SEE=SSEn−2,F=SSR/1SSE/(n−2)R^2 = \frac{SSR}{SST}, \quad SEE = \sqrt{\frac{SSE}{n-2}}, \quad F = \frac{SSR/1}{SSE/(n-2)}

Percentiles, Quartiles and the Interquartile Range

core
Ly=(n+1) y100,Py=X⌊Ly⌋+(Ly−⌊Ly⌋)(X⌊Ly⌋+1−X⌊Ly⌋)L_y = (n+1)\,\frac{y}{100}, \qquad P_y = X_{\lfloor L_y\rfloor} + \left(L_y - \lfloor L_y\rfloor\right)\left(X_{\lfloor L_y\rfloor+1} - X_{\lfloor L_y\rfloor}\right)

Range, Mean Absolute Deviation and Downside Deviation

core
Range=Xmax−Xmin,MAD=∑i=1n∣Xi−Xˉ∣n,starget=∑Xi<B(Xi−B)2n−1\text{Range} = X_{max} - X_{min}, \qquad MAD = \frac{\sum_{i=1}^{n}|X_i - \bar{X}|}{n}, \qquad s_{target} = \sqrt{\frac{\sum_{X_i < B}(X_i - B)^2}{n-1}}

Standard Error of the Mean and Confidence Interval

core
SE=sn,Xˉ±z⋅SESE = \frac{s}{\sqrt{n}}, \qquad \bar{X} \pm z\cdot SE

Test Statistic for a Mean (t / z)

core
t=Xˉ−μ0s/n,df=n−1t = \frac{\bar{X} - \mu_0}{s/\sqrt{n}}, \qquad df = n-1

Covariance and Correlation from a Joint Probability Table

core
Cov(RA,RB)=∑i=1npi (RA,i−E[RA])(RB,i−E[RB]),ρAB=Cov(RA,RB)σA σBCov(R_A,R_B) = \sum_{i=1}^{n} p_i\,\bigl(R_{A,i} - E[R_A]\bigr)\bigl(R_{B,i} - E[R_B]\bigr), \qquad \rho_{AB} = \frac{Cov(R_A,R_B)}{\sigma_A\,\sigma_B}

Continuously Compounded Return

core
rcc=ln⁡ ⁣(P1P0)=ln⁡(1+HPR),HPR=ercc−1r_{cc} = \ln\!\left(\frac{P_1}{P_0}\right) = \ln(1 + HPR), \qquad HPR = e^{r_{cc}} - 1

After-Tax and Real Returns

core
rAT=r(1−τ),rreal=1+r1+π−1,rreal,AT=1+r(1−τ)1+π−1r_{AT} = r(1 - \tau), \qquad r_{real} = \frac{1 + r}{1 + \pi} - 1, \qquad r_{real,AT} = \frac{1 + r(1 - \tau)}{1 + \pi} - 1

Economics

Elasticity, money and inflation — the macro identities behind the markets.

Drill this section →

Quantity Theory of Money

core
MV=PYMV = PY

Currency Cross Rates

core
X/Z=X/M×M/Z\text{X/Z} = \text{X/M} \times \text{M/Z}

Forward Exchange Rate (Covered Interest Rate Parity)

core
F=S 1+iP d3601+iB d360F = S\,\frac{1 + i_P\,\dfrac{d}{360}}{1 + i_B\,\dfrac{d}{360}}

Elasticities from a Demand Function

core
EP=P0Q0⋅ΔQΔP,EI=I0Q0⋅ΔQΔI,EX=Po,0Q0⋅ΔQΔPoE_P = \frac{P_0}{Q_0}\cdot\frac{\Delta Q}{\Delta P},\quad E_I = \frac{I_0}{Q_0}\cdot\frac{\Delta Q}{\Delta I},\quad E_X = \frac{P_{o,0}}{Q_0}\cdot\frac{\Delta Q}{\Delta P_o}

Fiscal and Money Multipliers

core
m=11−MPC(1−t),ΔADtax=ΔT⋅MPC⋅m,money multiplier=1RRm = \frac{1}{1 - MPC(1-t)},\quad \Delta AD_{tax} = \Delta T \cdot MPC \cdot m,\quad \text{money multiplier} = \frac{1}{RR}

Profit Maximization: MR = MC

core
produce where MR=MC;MR=P (price taker),MR=P(1−1∣E∣) (price searcher)\text{produce where } MR = MC;\qquad MR = P \ (\text{price taker}),\quad MR = P\left(1 - \frac{1}{|E|}\right) \ (\text{price searcher})

Shutdown and Breakeven Decisions

core
AR≥ATC: stay;AVC≤AR<ATC: operate in SR, exit in LR;AR<AVC: shut down\text{AR} \ge ATC:\ \text{stay};\quad AVC \le \text{AR} < ATC:\ \text{operate in SR, exit in LR};\quad \text{AR} < AVC:\ \text{shut down}

Real Exchange Rate and Purchasing Power Parity

core
RERP/B=SP/B PBPP,SP/BPPP=PPPB,(1+ΔRER)=(1+ΔS) 1+πB1+πPRER_{P/B} = S_{P/B}\,\frac{P_B}{P_P}, \qquad S^{PPP}_{P/B} = \frac{P_P}{P_B}, \qquad (1+\Delta RER) = (1+\Delta S)\,\frac{1+\pi_B}{1+\pi_P}

Financial Statement Analysis

The ratio machinery that turns raw statements into judgments about a business.

Drill this section →

Return on Equity

core
ROE=Net incomeAverage shareholders’ equityROE = \frac{\text{Net income}}{\text{Average shareholders' equity}}

Straight-Line vs. Double-Declining-Balance Depreciation

core
SL=Cost−SalvageLifeDDBt=Book valuet−1×2LifeSL = \frac{\text{Cost} - \text{Salvage}}{\text{Life}} \qquad DDB_t = \text{Book value}_{t-1} \times \frac{2}{\text{Life}}

Debt-to-Equity, Debt-to-Capital & Interest Coverage

core
D/E=Total debtTotal equityD/C=Total debtTotal debt+Total equityInterest coverage=EBITInterest expenseD/E = \frac{\text{Total debt}}{\text{Total equity}} \qquad D/C = \frac{\text{Total debt}}{\text{Total debt} + \text{Total equity}} \qquad \text{Interest coverage} = \frac{EBIT}{\text{Interest expense}}

Cash Conversion Cycle

core
CCC=DOH+DSO−DPOCCC = DOH + DSO - DPO

Sustainable Growth Rate

core
g=b×ROE,b=1−payout ratiog = b \times ROE, \qquad b = 1 - \text{payout ratio}

Basic Earnings per Share

core
EPS=NI−Dprefweighted-average common sharesEPS = \frac{NI - D_{pref}}{\text{weighted-average common shares}}

Receivables Turnover & Days Sales Outstanding

core
Receivables turnover=RevenueAverage receivablesDSO=365Receivables turnover\text{Receivables turnover} = \frac{\text{Revenue}}{\text{Average receivables}} \qquad DSO = \frac{365}{\text{Receivables turnover}}

Inventory Turnover & Days of Inventory on Hand

core
Inventory turnover=COGSAverage inventoryDOH=365Inventory turnover\text{Inventory turnover} = \frac{COGS}{\text{Average inventory}} \qquad DOH = \frac{365}{\text{Inventory turnover}}

Payables Turnover & Days Payables Outstanding

core
Payables turnover=PurchasesAverage payablesDPO=365Payables turnover\text{Payables turnover} = \frac{\text{Purchases}}{\text{Average payables}} \qquad DPO = \frac{365}{\text{Payables turnover}}

Total Asset Turnover

core
Total asset turnover=RevenueAverage total assets\text{Total asset turnover} = \frac{\text{Revenue}}{\text{Average total assets}}

Return on Assets

core
ROA=Net incomeAverage total assetsROA = \frac{\text{Net income}}{\text{Average total assets}}

Cash Flow from Operations: Converting to the Direct Method

core
Cash collected=Revenue−ΔAR,Cash paid to suppliers=COGS+ΔInv−ΔAP\text{Cash collected} = \text{Revenue} - \Delta AR,\quad \text{Cash paid to suppliers} = COGS + \Delta Inv - \Delta AP

Cash Flow from Operations: the Indirect Method

core
CFO=NI+Non-cash charges−Gains+Losses−ΔOperating assets+ΔOperating liabilitiesCFO = NI + \text{Non-cash charges} - \text{Gains} + \text{Losses} - \Delta\text{Operating assets} + \Delta\text{Operating liabilities}

Inventory Cost Flow: FIFO, LIFO and Weighted Average

core
BI+Purchases⏟goods available=COGS+EI,COGSFIFO=∑oldestuici,COGSLIFO=∑newestuici,COGSAVG=∑uici∑ui×units sold\underbrace{BI + \text{Purchases}}_{\text{goods available}} = COGS + EI, \qquad COGS_{FIFO} = \sum_{\text{oldest}} u_i c_i, \quad COGS_{LIFO} = \sum_{\text{newest}} u_i c_i, \quad COGS_{AVG} = \frac{\sum u_i c_i}{\sum u_i}\times \text{units sold}

Liquidity, Solvency and Coverage Ratios

core
DIR=Cash + securities + receivablesDaily cash expenditures,FCC=EBIT+LeaseInterest+Lease,ROCE=NI−DprefCommon equity‾DIR = \frac{\text{Cash + securities + receivables}}{\text{Daily cash expenditures}},\quad FCC = \frac{EBIT + \text{Lease}}{\text{Interest} + \text{Lease}},\quad ROCE = \frac{NI - D_{pref}}{\overline{\text{Common equity}}}

Corporate Issuers

What capital costs a company — the WACC cluster and leverage measures.

Drill this section →

Equity Investments

Valuing stocks: justified multiples, enterprise value and margin mechanics.

Drill this section →

Enterprise Value & EV/EBITDA

core
EV=Market cap+Debt+Preferred+Minority interest−CashEV = \text{Market cap} + \text{Debt} + \text{Preferred} + \text{Minority interest} - \text{Cash}

Margin Call Price

core
Pcall=P0 1−IM1−MMP_{call} = P_0\,\frac{1 - IM}{1 - MM}

Return on a Margin Purchase

core
R=(P1−P0)+D−(1−IM) P0 rLIM⋅P0R = \frac{(P_1 - P_0) + D - (1 - IM)\,P_0\, r_L}{IM \cdot P_0}

Return on a Short Sale

core
R=(P0−P1)−DIM⋅P0R = \frac{(P_0 - P_1) - D}{IM \cdot P_0}

Margin Call Price (Short Position)

core
Pcall=P0 1+IM1+MMP_{call} = P_0\,\frac{1 + IM}{1 + MM}

Index Return by Weighting Method

core
RPW=∑iP1,i∑iP0,i−1,RMC=∑iNiP1,i∑iNiP0,i−1,REW=1n∑i(P1,iP0,i−1)R_{PW}=\frac{\sum_i P_{1,i}}{\sum_i P_{0,i}}-1,\quad R_{MC}=\frac{\sum_i N_iP_{1,i}}{\sum_i N_iP_{0,i}}-1,\quad R_{EW}=\frac{1}{n}\sum_{i}\left(\frac{P_{1,i}}{P_{0,i}}-1\right)

Price-Weighted Index Divisor

core
I=∑iPiD,Dnew=∑iPiadjIold=Dold ∑iPiadj∑iPiI = \frac{\sum_i P_i}{D}, \qquad D_{new} = \frac{\sum_i P_i^{\text{adj}}}{I_{old}} = D_{old}\,\frac{\sum_i P_i^{\text{adj}}}{\sum_i P_i}

Fixed Income

Bond pricing, yields and the duration machinery that measures rate risk.

Drill this section →

Money Market Yields (Discount, HPY, MMY, BEY, EAY)

core
P=F(1−DR⋅t360),HPY=F−PP,MMY=HPY⋅360t,BEY=HPY⋅365t,EAY=(1+HPY)365/t−1P = F\left(1 - DR\cdot\tfrac{t}{360}\right),\quad HPY = \frac{F-P}{P},\quad MMY = HPY\cdot\tfrac{360}{t},\quad BEY = HPY\cdot\tfrac{365}{t},\quad EAY = (1+HPY)^{365/t}-1

Converting Yields Between Compounding Periodicities

core
y2=m2[(1+y1m1)m1/m2−1],EAY=(1+y1m1)m1−1y_2 = m_2\left[\left(1 + \frac{y_1}{m_1}\right)^{m_1/m_2} - 1\right], \qquad EAY = \left(1 + \frac{y_1}{m_1}\right)^{m_1} - 1

Portfolio Duration and Convexity

core
Dp=∑iwiDi,Cp=∑iwiCi,wi=MVi∑MVD_p = \sum_i w_i D_i,\quad C_p = \sum_i w_i C_i,\quad w_i = \frac{MV_i}{\sum MV}

Bond Horizon Return and Its Sources

core
RH=(PH+FVcouponsP0)1/H−1,FVcoupons=C (1+r)H−1rR_H = \left(\frac{P_H + FV_{coupons}}{P_0}\right)^{1/H} - 1,\quad FV_{coupons} = C\,\frac{(1+r)^H - 1}{r}

Bond Price & Yield to Maturity

core
P=C×1−(1+y)−ny+F(1+y)nP = C \times \frac{1-(1+y)^{-n}}{y} + \frac{F}{(1+y)^{n}}

Accrued Interest & Full (Dirty) Price

core
AI=C×tTFull price=Flat price+AIAI = C \times \frac{t}{T} \qquad \text{Full price} = \text{Flat price} + AI

Zero-Coupon Bond & Spot Rates

core
P=F(1+zn)nP = \frac{F}{(1+z_n)^n}

Modified Duration

core
ModDur=MacDur1+ymModDur = \frac{MacDur}{1+\frac{y}{m}}

Money Duration & PVBP

core
MoneyDur=ModDur×P,PVBP=MoneyDur×0.0001MoneyDur = ModDur \times P, \qquad PVBP = MoneyDur \times 0.0001

Derivatives

Forwards, options and the no-arbitrage logic that prices every contract.

Drill this section →

Alternative Investments

Real estate cap rates and the fee arithmetic of hedge funds and private funds.

Drill this section →

Portfolio Management

Diversification, beta and the CAPM — how risk is priced and performance judged.

Drill this section →

M² (Modigliani–Modigliani) Risk-Adjusted Return

core
M2=Rf+(Rp−Rf) σmσp,M2−Rm=risk-adjusted outperformanceM^2 = R_f + (R_p - R_f)\,\frac{\sigma_m}{\sigma_p}, \qquad M^2 - R_m = \text{risk-adjusted outperformance}

Mean–Variance Utility and the Optimal Risky Weight

core
U=E(R)−12Aσ2,y∗=E(Rp)−RfA σp2U = E(R) - \tfrac{1}{2}A\sigma^{2}, \qquad y^{*} = \frac{E(R_p) - R_f}{A\,\sigma_p^{2}}

Capital Allocation Line and Capital Market Line

core
E(Rc)=Rf+y [E(Rp)−Rf],σc=y σp,CML: E(Rp)=Rf+E(Rm)−Rfσm σpE(R_c) = R_f + y\,[E(R_p) - R_f], \quad \sigma_c = y\,\sigma_p, \qquad \text{CML: } E(R_p) = R_f + \frac{E(R_m) - R_f}{\sigma_m}\,\sigma_p

Two-Asset Portfolio Return & Risk

core
σp=wA2σA2+wB2σB2+2wAwBρABσAσB\sigma_p = \sqrt{w_A^2\sigma_A^2 + w_B^2\sigma_B^2 + 2 w_A w_B \rho_{AB}\sigma_A\sigma_B}

Beta

core
βi=Cov(Ri,Rm)σm2=ρim σiσm\beta_i = \frac{Cov(R_i, R_m)}{\sigma_m^2} = \rho_{im}\,\frac{\sigma_i}{\sigma_m}

CAPM (Security Market Line)

core
E(Ri)=Rf+βi [E(Rm)−Rf]E(R_i) = R_f + \beta_i\,[E(R_m) - R_f]

Jensen's Alpha

core
αp=Rp−[Rf+βp(Rm−Rf)]\alpha_p = R_p - \left[R_f + \beta_p(R_m - R_f)\right]

Treynor Ratio

core
T=Rp−RfβpT = \frac{R_p - R_f}{\beta_p}