Calculate the EV to sales ratio, a valuation ratio that compares a company’s enterprise value (EV) to its total revenue.

This ratio compares the enterprise value (EV) to the total revenue generated by the company. It can provide insights into how efficiently a company is using its revenue to generate value for its investors.

The formula is as follows:

\[\text{Enterprise Value to Sales Ratio} = \text{Enterprise Value} / \text{Total Revenue}\]

Also known as: EV/Sales.

EV to Sales Ratio in Python or via the MCP

Install the Finance Toolkit with:

pip install financetoolkit -U

Then call get_ev_to_sales_ratio as shown below.

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["NOW", "WDAY", "CRM"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.ratios.get_ev_to_sales_ratio()

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

What EV-to-sales multiples did ServiceNow, Workday and Salesforce trade at from 2021 to 2025?

Which returns:

  2021 2022 2023 2024 2025
CRM 9.4734 4.2668 7.3823 8.5235 6.2821
NOW 22.1821 10.6245 15.902 19.7984 11.7871
WDAY 13.2039 6.3974 9.4665 7.6732 5.7531

Parameters

get_ev_to_sales_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