Dirty Surplus

Calculate the dirty surplus: the change in a company’s book equity that the net income and the transactions with its shareholders do not explain, relative to the book equity at the start of the period.

Under clean surplus accounting the book equity grows by the net income less the net payout to shareholders. The rest bypasses the income statement, mostly through other comprehensive income: currency translation, pension remeasurements and hedging and securities gains and losses. Landsman, Miller, Peasnell and Shu (2011) find that the dirty surplus from share transactions at prices other than the market price predicts returns, and the residual income valuation of get_residual_income assumes clean surplus.

The formula is as follows:

\[\text{Dirty Surplus} = \frac{\Delta\text{Total Shareholder Equity} - \left(\text{Net Income} - \left\lvert \text{Dividends Paid}\right\rvert + \text{Common Stock Issued} - \left\lvert \text{Common Stock Repurchased}\right\rvert\right)}{\text{Total Shareholder Equity}_{t-1}}\]

The formula for the other comprehensive income is as follows:

\[\text{Other Comprehensive Income} = \frac{\Delta\text{Accumulated Other Comprehensive Income}}{\text{Total Shareholder Equity}_{t-1}}\]

Delta is the change over a year (four quarters with quarterly data), with the flows of that year, and Total Shareholder Equity(t-1) the equity a year earlier. A book equity of zero or less gives NaN.

  • Landsman, W. R., B. L. Miller, K. Peasnell and S. Shu (2011). “Do Investors Understand Really Dirty Surplus?” The Accounting Review, 86(1), 237-258.
  • Ohlson, J. A. (1995). “Earnings, Book Values, and Dividends in Equity Valuation.” Contemporary Accounting Research, 11(2), 661-687.

Also known as: dirty surplus accounting, clean surplus violation, other comprehensive income to equity, RDS.

Example · AAPL, MSFT, KO, XOM · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_dirty_surplus:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["AAPL", "MSFT", "KO", "XOM"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.ratios.get_dirty_surplus()

Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:

How large was the dirty surplus of Apple, Microsoft, Coca-Cola and ExxonMobil, the change in book equity that net income and shareholder transactions do not explain, from 2021 to 2025?

Which returns:

Parameters

get_dirty_surplus accepts the following parameters.

ParameterTypeDescriptionExample
methodstrThe measure. Options are: “total” (the dirty surplus), “comprehensive_income” (the other comprehensive income). Defaults to “total”."total"
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise).2
growthboolWhether to calculate the growth of the ratios. Defaults to False.True
lagint | list[int]The lag to use for the growth calculation. Defaults to 1.4
compoundboolWhether the growth is the compound annual growth rate over the lag (e.g. lag=5 for the five-year CAGR) instead of the total change. Defaults to False.False
standardizeboolWhether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.True
transformstr | list[str] | NoneTime series steps applied in order, such as “sma:12” (moving average), “ema:12”, “std:12”, “zscore:60”, “percentile:120”, “yoy”, “pct_change:3,annualize:3”, “log”, “diff”, “cumsum” or “hp_trend” and “hp_cycle” (Hodrick-Prescott), before growth. A window needs that many periods of history, so the first periods can be empty. Defaults to None.None
show_columnsstr | list[str] | NoneThe columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column.None, which keeps every column

References

  • Paper Landsman, W. R., B. L. Miller, K. Peasnell and S. Shu (2011). “Do Investors Understand Really Dirty Surplus?” The Accounting Review, 86(1), 237-258.
  • Paper Ohlson, J. A. (1995). “Earnings, Book Values, and Dividends in Equity Valuation.” Contemporary Accounting Research, 11(2), 661-687.
Share