Calculate the revenue per share, a valuation ratio that measures the amount of revenue generated per outstanding share of a company’s stock.

The revenue per share is an important metric that provides insight into a company’s ability to generate revenue on a per-share basis. It can help investors understand the company’s revenue-generation efficiency and its overall financial health.

The formula is as follows:

\[\text{Revenue per Share} = \text{Revenue} / \text{Weighted Average} (\text{Diluted}) \text{Shares}\]

Also known as: sales per share.

No programming experience? With the Finance Toolkit MCP server, AI assistants such as Claude and ChatGPT can calculate the Revenue per Share (RPS) for you. Just ask in plain English.

Calculate the Revenue per Share (RPS) in Python

The Revenue per Share (RPS) is available in the Ratios module of the open-source Finance Toolkit. Install it with:

pip install financetoolkit -U

Then call get_revenue_per_share as shown below.

from financetoolkit import Toolkit

toolkit = Toolkit(["AAPL", "TSLA"], api_key="FINANCIAL_MODELING_PREP_KEY")

revenue_per_share = toolkit.ratios.get_revenue_per_share()

Which returns:

  2021 2022 2023 2024 2025
AAPL 21.691 24.1536 24.2393 25.3785 27.7354
TSLA 15.8957 23.4423 27.7864 27.9274 26.8784

Parameters

get_revenue_per_share accepts the following parameters:

  • diluted (bool, optional): Whether to use diluted shares in the calculation. Defaults to True.
  • rounding (int, optional): The number of decimals to round the results to. Defaults to 4.
  • growth (bool, optional): Whether to calculate the growth of the ratios. Defaults to False.
  • lag (int | str, optional): The lag to use for the growth calculation. Defaults to 1.
  • standardize (bool, optional): Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.
  • trailing (int): Defines whether to select a trailing period. E.g. when selecting 4 with quarterly data, the TTM is calculated.

The Ratios module page introduces the module, and the sidebar lists all of its functions.

Share