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:
| Item | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|
| AAPL | 40.7858 | 41.7823 | 42.7981 | 43.7947 | 44.7912 |
| ABNB | 1.0568 | 2.0561 | 3.0554 | 4.0575 | 5.0568 |
| MSFT | 35.2991 | 36.2984 | 37.2977 | 38.2998 | 39.2991 |
| SNOW | 1.3744 | 2.3737 | 3.3730 | 4.3751 | 5.7029 |
4 rows
Parameters
get_firm_age accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
method | str | The measure. Options are: “years” (the firm age), “recent_ipo” (the recent IPO flag). Defaults to “years”. | "years" |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the ratios. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
compound | bool | Whether 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 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
transform | str | list[str] | None | Time 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_columns | str | list[str] | None | The 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.