Continuing Operations Profit Margin
Calculate the continuing operations profit margin, the net income from continuing operations as a share of revenue.
The net profit margin includes the result of discontinued operations, such as a business that was sold or is held for sale, including the gain or loss on its sale. Those results do not recur, so the continuing operations profit margin is the margin of the business the company keeps. Both are equal for a company without discontinued operations.
The formula is as follows:
\[\text{Continuing Operations Profit Margin} = \frac{\text{Net Income from Continuing Operations}}{\text{Revenue}}\]Also known as: continuous operations profit margin, net margin from continuing operations.
Example · GE, JNJ, DHR · 2021 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_continuing_operations_profit_margin:
from financetoolkit import Toolkit
toolkit = Toolkit(
["GE", "JNJ", "DHR"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.ratios.get_continuing_operations_profit_margin()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What was the profit margin from continuing operations of GE, Johnson & Johnson and Danaher from 2021 to 2025?
Which returns:
| Item | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|
| DHR | 0.2155 | 0.2375 | 0.1767 | 0.1633 | 0.1465 |
| GE | -0.0875 | 0.0464 | 0.2673 | 0.1720 | 0.1874 |
| JNJ | 0.2261 | 0.2047 | 0.1565 | 0.1584 | 0.2846 |
3 rows
Parameters
get_continuing_operations_profit_margin accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
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 |
trailing | int | The 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. The window counts calendar periods, so a period without a report makes it NaN. Defaults to None, which uses single-period flows (per quarter and not annualized with quarterly data). | 4 |
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 |