AI competitive analysis for stocks: the complete guide
By Pranav, founder of TradeAnalysis · Last updated
This workflow is an AI competitive analysis for public companies. Name one company and it finds its closest listed rivals; name a few companies and it compares them; name an industry and it compares the leaders. It then measures them on real financials: who earns the industry's profit, who earns more than their cost of capital, who is gaining or losing share, which companies show signs of a lasting advantage (a moat), whether growth has been sustained for 10 years, and whether the share price already reflects all of it.
It is built for the question investors ask before choosing a stock in a sector: of the companies competing here, which is best placed, and is that already in the price?
What the AI competitive analysis does
- Finds the competitors: the closest listed rivals of the company you name (up to 5), the companies you list yourself, or the leading companies in an industry you name.
- Maps the profit pool: each company's share of the group's sales next to its share of the profit, and its economic profit: what it earns above the cost of the capital it uses.
- Tracks market share: each company's share of the group's sales now vs five years ago.
- Scores moat signals: returns above the cost of capital year after year, stable gross margins (pricing power), margins rising as sales grow (scale), share gains and an above-median margin.
- Runs a 10-year growth test: did sales and earnings both grow faster than inflation plus 5.5% a year while the company earned its cost of capital?
- Checks the price: each company's valuation next to the group median, so you can see whether a strong position is already priced in.
- Ranks the group on competitive strength, with each company's strengths and weak spots in numbers.
The output is an input to an investment thesis, not a complete one. It ranks competitive strength, not which stock will do best.
It suits investors choosing between companies in one industry, or following a theme such as payments or cloud software, who want the trade-offs in numbers. Long-term investors use it to find durable businesses and to check whether a company's advantage is growing or shrinking.
What you give it
One of three things:
- One company, by ticker or name: "KO" or "Coca-Cola". It is compared with its closest listed rivals.
- Two to six companies to compare: "KO vs PEP MNST" or "Coca-Cola vs Pepsi".
- An industry: "payments", "airlines", "cloud software", "EV makers" and around 30 others.
KO
US-listed companies work, including US-listed shares of foreign companies such as Toyota (TM).
What you get back
- The companies compared, with sales over the last 12 months and market value.
- Who earns the profit: share of sales vs share of profit, and economic profit for each.
- Market share trend over five fiscal years.
- Moat scorecard: each signal marked ✅ or ❌ with the number behind it.
- The 10-year sustained growth test.
- Leader vs challenger: whether the biggest company is also the most profitable.
- Is the advantage priced in? Price-to-sales and price-to-earnings against the group median.
- A ranking with strengths and weak spots, a bottom line and what to watch next.
Example report
A real, unedited response, captured 12 Nov 2026. Prices have moved since, so run it yourself for a current read.
Profit pools: follow the profit, not the sales
An industry's profit pool is the total profit earned by everyone in it. It is rarely shared out in line with sales. In most markets one or two companies earn the large majority of the profit, and companies with big sales can earn very little. That is why the report puts each company's share of sales next to its share of profit: the gap between the two tells you more about competitive position than either number alone.
The report also measures economic profit: after-tax operating profit minus a charge for the capital the business uses (9% a year, or 10% for banks and insurers). A company can report a profit and still earn less than its capital costs. Over time, it's economic profit that builds value.
The biggest company isn't always the strongest
Being the largest by sales is not the same as leading on profit. A smaller rival with better customers, lower costs or a stronger brand can earn more, and many market leaders don't earn back their cost of capital at all. The "leader vs challenger" section shows whether size and profit leadership line up in the group you chose, or not.
The moat signals, and how they show up in numbers
A moat is a lasting advantage that protects a company's profits from competitors. The analysis looks for five signs of one in the financials:
Returns above the cost of capital, year after year
Return on capital (return on equity for banks and insurers) above the cost of capital in at least 8 of the last 10 years. Competition usually pushes high returns down; a company that keeps them high for a decade is protected by something.
Pricing power
Gross margin that has stayed within a narrow range over 10 years and isn't slipping now. A company that can pass on rising costs without losing customers keeps its margin; one without pricing power sees it squeezed.
Scale
Operating margin higher than five years ago while sales grew. When fixed costs are spread over more sales, each extra dollar of sales should be more profitable.
Share gains
A rising share of the group's sales over five years, which usually reflects a better product, better pricing or better execution.
An above-median margin
A profitable business with a margin above the group median, a sign of an advantage over the companies it competes with directly.
Network effects, switching costs and brands are hard to measure directly, but they tend to show up in exactly these numbers.
The 10-year sustained growth test
Few companies manage to grow both sales and earnings faster than inflation for a decade while earning their cost of capital. The test asks for both to grow at least 8.6% a year over 10 years (about 5.5% a year after inflation) with a median return above the cost of capital. Passing it is rare, and a company that has done it has proved its advantage over a full business cycle.
Reading the example: Coca-Cola and its rivals
Run in November 2026, "KO" compared Coca-Cola with PepsiCo, Monster Beverage, Keurig Dr Pepper, Coca-Cola Consolidated and Primo Brands:
- Profit pool: PepsiCo had 50% of the group's sales but 38% of the profit; Coca-Cola had 26% of the sales and 42% of the profit, about $5.9B a year above its cost of capital.
- Leader vs challenger: PepsiCo is the biggest by sales, but Coca-Cola earns the most economic profit.
- Moat signals: Coca-Cola passed all 5: return on capital above 9% in 9 of the last 10 years, gross margin between 58% and 62% for a decade, operating margin up from 29.0% to 31.6%, share up from 25.6% to 26.5%, and a 32% operating margin against a group median of 15%.
- Growth test: only Monster Beverage passed. Coca-Cola's sales grew 0.8% a year over 10 years.
- Price: Coca-Cola traded at 8.7x sales against a group median of 2.9x: the market already pays for its position.
The value of the comparison is in those trade-offs, which tell you what to keep checking.
How to use it
- Start from a company or a theme you're considering.
- Read the profit pool and the moat signals, not just the ranking.
- Value the leader: the AI DCF valuation and the free DCF calculator show whether the price already reflects the advantage. A great company at too high a price can still be a poor investment.
- Check the latest results: the AI earnings analyzer shows whether the most recent quarter supports the competitive story.
- Check fit and macro exposure: the AI portfolio risk check and the AI macro impact report show how the stock would change your portfolio's risk.
If you'd rather start from a style than a company, the AI stock screener finds stocks that fit it. Our guide on how to read a stock earnings report helps you check margins and segment trends yourself.
Common mistakes in competitive analysis
- Confusing size with strength. The biggest company by sales is often not the one earning the most profit.
- Calling every brand a moat. If margins and returns don't hold up over years, the advantage is weaker than it looks.
- Ignoring valuation. The best-placed company is often priced for it.
- Analysing a company alone. Strength only means something compared with the alternatives, which is why the workflow always compares named competitors.
Where it fits in a research routine
- Choose the industry, often from a theme you believe in or a macro view.
- Compare the companies with this workflow to find the best-placed one and the main risk to its position.
- Check the latest quarter with the AI earnings analyzer.
- Value it with the AI DCF valuation.
- Check the chart with the AI chart analysis before choosing when to buy.
Each step answers a different question: is this the right business, is it performing, is the price right, and is now a sensible time.
What it doesn't do
- It doesn't give a buy or sell call. It compares competitive positions; the decision is yours.
- It doesn't measure share of the whole market. Share means share of the companies compared, since full market data including private companies isn't public.
- It doesn't cover companies listed only outside the US.
- It isn't advice. It is a research workflow.
The AI competitive analysis is one of 14 AI workflows on TradeAnalysis; the methodology page explains how each one is built.
Frequently asked questions
- What does the AI competitive analysis do?
- It compares a company with its rivals on real financials: who earns the industry's profit, who earns more than their cost of capital, market share trends, five moat signals, a 10-year sustained growth test and valuation against the group, then ranks the companies on competitive strength.
- What do I need to enter?
- One company (a ticker like KO or a name like Coca-Cola), two to six companies to compare (KO vs PEP MNST), or an industry such as payments, airlines or cloud software.
- Can I name the competitors myself?
- Yes. List up to six companies, for example TSLA vs GM F RIVN. If you name one company, it finds its closest listed rivals for you.
- What is an economic moat?
- A lasting advantage that protects a company's profits from competitors, such as pricing power, switching costs, scale, network effects or a strong brand. The report looks for its signs in the numbers: returns above the cost of capital for years, stable gross margins, rising margins with scale, share gains and an above-median margin.
- What is economic profit?
- After-tax operating profit minus a charge for the capital the business uses. The report assumes a 9% cost of capital (10% for banks and insurers). Positive economic profit means the company earns more than its capital costs.
- Where does the data come from?
- Company financials via Finnhub: the last 12 months plus up to 10 fiscal years of margins, returns and sales. The AI writes the bottom line and what to watch from those numbers.
- Does it tell me which stock to buy?
- No. It ranks competitive strength and shows whether that strength is already in the price. Valuation, financial health and your own portfolio still matter before any decision.
- Does market share mean share of the whole market?
- No. It means each company's share of the sales of the companies being compared, because complete market data, including private companies, isn't publicly available.
- Does it cover non-US companies?
- It covers US-listed companies, including US-listed shares of foreign companies such as Toyota (TM). Companies listed only outside the US aren't covered yet.
- Which plan includes it?
- Pro ($14.99 a month, 500 prompts) and Elite. One run uses one prompt.