Firm Age

Calculate the age of a company since its listing: the years since its initial public offering at the end of each period, or whether it listed recently.

Young companies are riskier and less known: Barry and Brown (1984) find that returns depend on how long information about a company has been available, and Ritter (1991) that companies underperform in the three years after their initial public offering.

The formula is as follows:

\[\text{Firm Age} = \frac{\text{Period End} - \text{IPO Date}}{365.25}\]

The recent IPO flag is 1 when the IPO took place 6 to 36 months before the period end, so when the firm age lies between 0.5 and 3 years, and 0 otherwise. The formula for the recent IPO flag is as follows:

\[\text{Recent IPO} = 1 \quad \text{if } \left\lvert \text{Firm Age} - 1.75\right\rvert \leq 1.25\] \[\text{Recent IPO} = 0 \quad \text{if } \left\lvert \text{Firm Age} - 1.75\right\rvert > 1.25\]

The difference between the dates is in days. The IPO date is the one of the company profile; the period end is the end of the fiscal period. A period that ends before the listing, or a company without an IPO date, is NaN.

  • Barry, C. B. and S. J. Brown (1984). “Differential Information and the Small Firm Effect.” Journal of Financial Economics, 13(2), 283-294.
  • Ritter, J. R. (1991). “The Long-Run Performance of Initial Public Offerings.” The Journal of Finance, 46(1), 3-27.

Also known as: firm age, years listed, age since IPO, FirmAge, IndIPO.

Example · AAPL, MSFT, ABNB, SNOW · 2021 to 2025

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

from financetoolkit import Toolkit

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

toolkit.ratios.get_firm_age()

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

How many years had Apple, Microsoft, Airbnb and Snowflake been listed at the end of each year from 2021 to 2025?

Which returns:

Parameters

get_firm_age accepts the following parameters.

ParameterTypeDescriptionExample
methodstrThe measure. Options are: “years” (the firm age), “recent_ipo” (the recent IPO flag). Defaults to “years”."years"
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 Barry, C. B. and S. J. Brown (1984). “Differential Information and the Small Firm Effect.” Journal of Financial Economics, 13(2), 283-294.
  • Paper Ritter, J. R. (1991). “The Long-Run Performance of Initial Public Offerings.” The Journal of Finance, 46(1), 3-27.
Share