Earnings Consistency

Calculate how steadily a company’s earnings per share grow: the number of periods in a row they rose against a year earlier, and how consistent their changes were.

Loh and Warachka (2012) find that investors underreact to a streak of good earnings news, so that companies whose earnings rose for several quarters in a row keep earning higher returns, and Alwathainani (2009) that companies whose earnings grew consistently over the past years outperform those whose growth was erratic. Both are momentum signals of the earnings rather than the price.

The formula is as follows:

\[\Delta\text{EPS} = \text{EPS} - \text{EPS}_{t-k}\] \[\text{Earnings Increase Streak} = \min\left(\text{Earnings Increase Streak}_{t-1} + 1, 8\right) \quad \text{if } \Delta\text{EPS} > 0\] \[\text{Earnings Increase Streak} = 0 \quad \text{if } \Delta\text{EPS} \leq 0\] \[\text{Earnings Consistency} = \frac{\operatorname{mean}\left(\Delta\text{EPS}\right)}{\operatorname{mean}\left(\left\lvert \Delta\text{EPS}\right\rvert\right)}\]

EPS(t-k) is the EPS a year earlier, so the streak counts the consecutive periods up to t with a rise, up to 8; a period with an unknown change is NaN and starts the count again. The means run over the window of years up to t, so the consistency runs from -1 (every change a decline) to 1 (every change an increase).

With quarterly statements every quarter is compared with the same quarter a year earlier, as in the papers.

Also known as: earnings streak, number of earnings increases, earnings consistency, consecutive earnings increases.

Example · AAPL, MSFT · 2016 to 2025

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

from financetoolkit import Toolkit

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

toolkit.models.get_earnings_consistency().loc[:, "2021":]

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

For how many years in a row did the earnings per share of Apple and Microsoft rise from 2021 to 2025, and how consistent was their growth, with data from 2016?

Which returns:

Parameters

get_earnings_consistency accepts the following parameters.

ParameterTypeDescriptionExample
windowintThe number of years of changes in the consistency. Defaults to 4 (48 months, as Alwathainani).20
dilutedboolWhether to use the diluted earnings per share, which falls back on the basic earnings per share where the statements do not report it. Defaults to True.False
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the Toolkit’s rounding.2
transformstr | list[str] | NoneTime series steps applied to the result 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), along the dates of each series. A window needs that many periods of the result, so its first periods are 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 Loh, R.K. and Warachka, M. (2012). “Streaks in Earnings Surprises and the Cross-Section of Stock Returns.” Management Science, 58(7), 1305-1321.
  • Paper Alwathainani, A.M. (2009). “Consistency of Firms’ Past Financial Performance Measures and Future Returns.” The British Accounting Review, 41(3), 184-196.
Share