Calculate the price to cash flow ratio, a valuation ratio that compares a company’s market price to its operating cash flow per share.

The price to cash flow ratio is a key valuation metric that helps investors assess the relative value of a company’s stock. It is similar to the price to earnings ratio, but uses cash flow instead of earnings in the denominator.

The formula is as follows:

\[\text{Price to Cash Flow Ratio} = \text{Share Price} / \text{Cash Flow from Operations per Share}\]

Also known as: P/CF ratio.

Price to Cash Flow Ratio (P/CF) in Python or via the MCP

Install the Finance Toolkit with:

pip install financetoolkit -U

Then call get_price_to_cash_flow_ratio as shown below.

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["SHEL", "BP", "TTE"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.ratios.get_price_to_cash_flow_ratio()

Or, after setting up the Finance Toolkit MCP, ask:

At what multiple of operating cash flow did Shell, BP and TotalEnergies trade from 2021 to 2025?

Which returns:

  2021 2022 2023 2024 2025
BP 3.8083 2.7006 3.2687 3.0351 3.7607
SHEL 3.7559 3.0844 4.1282 3.6452 5.0988
TTE 4.3059 3.3711 4.0313 4.1606 5.0908

Parameters

get_price_to_cash_flow_ratio accepts the following parameters.

ParameterTypeDescriptionExample
show_dailyboolWhether to show daily values: the close of each trading day against the statement figures of the latest period that has ended on or before that day (also when it ended before the start date), so no figures are used before their period closes. Defaults to False.True
dilutedboolWhether to use diluted shares in the calculation. Defaults to True.False
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
trailingintThe number of periods to sum flows (income and cash flow statement items) over, with balance sheet items averaged over the same number of period ends. E.g. 4 with quarterly data gives the trailing twelve months (TTM) and 3 with annual data a three-year cumulative figure. Defaults to None, which uses the trailing twelve months (4 quarters) with quarterly data and single years with annual data.4
Share