The US stock market may have more room to rise, but investors should not assume that strong corporate earnings will continue to protect equities indefinitely. UBS strategist Bhanu Baweja is warning that pressure on corporate profit margins could become a more important risk for stocks as the market moves into 2027.
The concern is straightforward: companies can continue increasing revenue while their earnings growth slows if the cost of producing those revenues rises faster than sales.
That creates a potentially difficult environment for equities because stock valuations ultimately depend on both earnings and the expectations surrounding those earnings.
UBS remains constructive on global equities and expects another solid year of earnings growth in 2027. The bank’s August investment outlook forecasts global equity earnings growth of about 21% for 2026 followed by another strong year in 2027.
But the warning about margins introduces an important qualification.
Investors may be focusing heavily on revenue growth, artificial intelligence investment and resilient economic activity while underestimating how quickly rising costs could begin eating into corporate profits.
Why Profit Margins Matter So Much
Profit margins show how much of every dollar in sales a company ultimately keeps as profit.
For example, if a company generates $100 in revenue and earns $20 in operating profit, its operating margin is 20%.
If costs rise while revenue stays unchanged, that margin falls.
This sounds simple, but the consequences for financial markets can be substantial.
A company can report strong sales growth and still disappoint investors if profitability deteriorates.
The basic equation is:
Revenue growth + stable margins = strong earnings growth
But:
Revenue growth + falling margins = weaker earnings growth
That distinction could become increasingly important in 2027.
The Stock Market Has Been Supported by Strong Earnings

One reason equities have remained resilient despite geopolitical uncertainty and concerns about interest rates is that corporate earnings have continued to surprise positively.
UBS has argued that strong profit growth remains one of the key foundations of the current equity rally. Its recent outlook maintains a constructive view of global equities while acknowledging risks from higher energy prices, inflation and potential changes in central-bank policy.
This is important because stock markets can tolerate relatively high valuations when earnings are rising rapidly.
If profits continue expanding, today’s valuation can become more reasonable over time.
But the opposite is also true.
If earnings growth slows unexpectedly, investors may decide that stocks were priced too aggressively.
That can produce a double hit:
lower earnings + lower valuation multiples.
That is the scenario investors need to watch.
Labor Costs Could Put Pressure on Margins
One of the most obvious sources of margin pressure is labor.
Wages have risen substantially across many parts of the global economy.
Higher wages are positive for consumers because they increase household purchasing power.
But for businesses, labor is a cost.
Companies can protect margins by increasing prices, improving productivity or reducing headcount.
None of those solutions is unlimited.
If companies raise prices too aggressively, consumers may reduce spending.
If companies cut workers, growth could weaken.
If they absorb the costs, margins decline.
This creates a difficult balancing act.
Energy Prices Are Another Major Threat

Oil and other energy costs can have a significant effect on corporate profitability.
The current geopolitical environment makes this risk particularly important.
Renewed instability around the Middle East and the Strait of Hormuz has already created concerns about energy supply and inflation. Higher oil prices can increase transportation, manufacturing and operating costs across the economy.
A July market analysis from Raymond James similarly warned that elevated oil prices could eventually erode corporate margins or weaken economic activity, even though earnings remained strong.
That is the key distinction.
Markets can absorb higher oil prices for a while.
The problem begins when higher energy costs become persistent.
Inflation Could Make the Problem Worse
Margin pressure and inflation can reinforce each other.
If companies face higher wages, energy costs and input prices, they may attempt to pass those costs on to consumers.
That can keep inflation elevated.
If inflation remains sticky, central banks may have less freedom to cut interest rates.
Higher rates then create another problem for stocks.
They increase borrowing costs, reduce the present value of future earnings and make bonds more attractive relative to equities.
UBS has previously identified the risk of renewed central-bank rate hikes if energy prices rise further or inflation proves persistent.
This means investors could face a difficult combination:
higher costs + weaker margins + higher interest rates.
That would be considerably more dangerous for stocks than any one of those factors by itself.
Artificial Intelligence Is a Major Exception
There is an important counterargument to the margin-pressure thesis.
Artificial intelligence could dramatically improve productivity.
Companies are investing enormous amounts in AI infrastructure, software and automation.
If those investments eventually allow businesses to produce more with fewer employees, margins could actually expand.
That is one reason investors continue to place such a high value on AI-related companies.
The technology could reduce:
- Labor costs
- Administrative expenses
- Customer-service costs
- Software development costs
- Research expenses
- Manufacturing inefficiencies
But there is a timing problem.
Companies are spending heavily today while many of the largest productivity benefits may take years to appear.
That creates a potential gap between investment and returns.
AI Spending Could Initially Hurt Margins
The AI boom itself creates another source of cost pressure.
Technology companies are spending enormous amounts on data centers, chips, electricity and networking equipment.
UBS estimates that hyperscaler capital spending could reach roughly $1.4 trillion in 2027, according to recent analysis cited by Yahoo Finance. The bank argues that much of the financial burden is moving through the technology supply chain, particularly because of elevated memory costs.
That means AI can simultaneously be:
a productivity opportunity
and
a capital-spending burden.
For companies building AI infrastructure, the immediate effect can be lower free cash flow.
Investors therefore need to distinguish between accounting earnings and the actual cash economics of the AI boom.
The Semiconductor Industry Illustrates the Problem
Semiconductors provide a useful example of how margins can behave during a technology boom.
Demand for AI chips has surged.
Companies supplying AI infrastructure have benefited enormously.
But the supply chain is also experiencing massive investment requirements.
Memory prices, data-center construction costs and energy requirements can all affect profitability.
UBS has argued that semiconductor suppliers could generate enormous amounts of cash during the AI infrastructure cycle, while hyperscalers face heavier capital spending.
This creates an unusual dynamic.
Some companies are effectively financing the AI buildout through their own cash generation, while others are spending aggressively to acquire the infrastructure.
That distinction could become increasingly important in 2027.
The Magnificent Seven Face a Different Test
Large US technology companies have been major drivers of the stock market.
Their enormous earnings and strong balance sheets have helped justify high valuations.
But their size creates a problem.
It becomes harder to maintain extraordinary growth when revenue is already measured in hundreds of billions of dollars.
Investors may therefore begin demanding evidence that AI spending is producing measurable returns.
The questions will become increasingly specific:
- How much additional revenue is AI creating?
- How quickly are AI products becoming profitable?
- Are AI infrastructure investments generating sufficient returns?
- Can companies maintain margins while spending more?
- How much pricing power do technology companies retain?
If answers become less convincing, valuations could come under pressure.
Consumer Companies May Face the Greatest Margin Pressure
Consumer-facing businesses could be particularly vulnerable.
Companies selling everyday products have limited pricing power.
If food, transportation, energy and housing costs rise, consumers may become more price-sensitive.
Businesses then face a difficult choice.
They can raise prices and risk losing customers.
Or they can absorb higher costs and accept lower margins.
Large consumer brands can sometimes use their scale and brand loyalty to protect profitability.
Smaller companies may not have that luxury.
This could create a widening gap between market leaders and weaker businesses.
Industrial Companies Have Their Own Challenges
Manufacturers face many of the same pressures.
Higher wages, energy costs, transportation expenses and raw materials can all reduce profitability.
Companies investing in domestic manufacturing may also face higher construction and labor costs.
The long-term benefits of reshoring can be significant, particularly for national security.
But the transition can be expensive.
That creates another potential margin problem.
Higher Interest Rates Add Another Layer of Pressure
Interest rates affect companies even when they do not directly change operating margins.
Businesses with significant debt have to pay more when borrowing costs rise.
Companies refinancing old debt may discover that their interest expenses are significantly higher than before.
That reduces net income.
Highly leveraged businesses therefore face greater risk than companies with strong balance sheets.
The same principle applies to consumers.
If households spend more money servicing mortgages, credit cards and other loans, they have less money available for discretionary purchases.
That can eventually reduce corporate revenue.
Valuations Leave Less Room for Disappointment
Margin pressure becomes particularly dangerous when valuations are already elevated.
A cheap stock can sometimes absorb disappointing earnings.
An expensive stock cannot.
If investors expect very strong earnings growth, even a modest slowdown can trigger a sharp repricing.
This is why the market’s expectations matter as much as the economic data itself.
The question is not simply:
Are companies making money?
The question is:
Are companies making as much money as investors expected?
That is a much higher standard.
The Fed Will Remain Central to the Story
Federal Reserve policy could determine how much margin pressure markets can tolerate.
If inflation remains controlled, the Fed can potentially cut rates and support economic activity.
Lower rates would help companies refinance debt and support equity valuations.
But if inflation remains stubborn because of energy prices, wages or tariffs, the Fed may have to remain restrictive for longer.
UBS has previously argued that the threshold for renewed Fed tightening remains high, while also acknowledging that energy and inflation risks could alter that outlook.
The market therefore faces two opposing forces.
Positive scenario:
- Economic growth remains resilient
- Inflation falls
- Interest rates decline
- AI boosts productivity
- Corporate margins remain stable
- Earnings continue growing
Negative scenario:
- Energy prices remain elevated
- Inflation stays sticky
- Rates remain high
- Labor costs rise
- Margins decline
- Earnings expectations fall
The difference between those scenarios could determine the direction of equities in 2027.
Investors May Need to Become More Selective
If margin pressure becomes a dominant theme, broad market exposure may not perform as strongly as it has during periods when almost every major company benefits from rising earnings expectations.
Investors may increasingly favor companies with:
- Strong balance sheets
- High free cash flow
- Pricing power
- Low debt
- Stable demand
- High returns on capital
- Structural growth
Companies without those characteristics could struggle.
This does not necessarily mean investors should abandon growth stocks.
It means the quality of growth becomes more important.
Earnings Growth Will Matter More Than Revenue Growth
The market may increasingly reward companies that can demonstrate genuine earnings expansion.
Revenue growth alone will not be enough if costs are growing just as quickly.
Investors should therefore pay attention to operating margins, free cash flow and return on invested capital rather than focusing exclusively on sales.
A company growing revenue 15% while margins fall sharply may ultimately create less shareholder value than a company growing revenue 8% while expanding profitability.
That distinction could become much more important in 2027.
The Bull Case Is Still Alive
UBS has not abandoned its constructive view.
The bank continues to expect solid earnings growth and remains positive on global equities. Its August outlook says it continues to favor US and Asian equities and upgraded European equities to Attractive.
That means the margin warning should not be interpreted as a prediction of a stock-market crash.
It is better understood as a warning about the next phase of the bull market.
The market may continue rising.
But the path could become narrower.
The Bear Case Is About Expectations, Not Economic Collapse
A margin-driven market correction does not require a recession.
Stocks can decline even while the economy continues growing.
All that is necessary is for earnings to grow more slowly than investors expected.
That is why 2027 could become a year of earnings differentiation.
Some companies may continue expanding margins.
Others may experience cost pressure.
The market could reward the first group and punish the second.
What Investors Should Watch in 2027
Several indicators will be particularly important.
1. Corporate operating margins
Are companies maintaining profitability as costs rise?
2. Wage growth
Are labor expenses accelerating or moderating?
3. Oil prices
Are energy costs creating another inflationary shock?
4. AI productivity
Are AI investments actually increasing profits?
5. Interest rates
Can central banks cut rates without reigniting inflation?
6. Consumer demand
Are households still willing to spend despite higher costs?
7. Free cash flow
Are companies generating cash after capital expenditures?
8. Earnings revisions
Are analysts raising or cutting profit forecasts?
These indicators could tell investors whether margin concerns are becoming a genuine market threat or simply another risk that equities can absorb.
Conclusion: 2027 Could Be a Margin Test for Stocks
The biggest risk facing stocks in 2027 may not be a dramatic economic downturn.
It could be something much less obvious: companies simply finding it harder to turn revenue into profit.
That is the central concern behind the warning from UBS’s Bhanu Baweja.
The current equity market has benefited from resilient economic activity, strong earnings and enormous enthusiasm surrounding artificial intelligence. UBS itself continues to expect healthy global earnings growth and remains constructive on equities.
But investors should not confuse strong earnings today with guaranteed earnings tomorrow.
Corporate America is entering a period in which labor costs, energy prices, financing expenses, AI investment and other inputs could challenge profitability.
At the same time, stock valuations leave relatively little room for major disappointments.
The good news is that companies have tools to defend margins.
They can raise prices.
They can automate.
They can reduce costs.
They can use AI to improve productivity.
They can shift supply chains.
They can invest in more efficient operations.
The strongest companies will probably do this better than weaker competitors.
That means margin pressure could ultimately produce a more selective market rather than an outright collapse.
The crucial issue for investors will be determining which companies can turn technological investment and economic growth into sustainable profits.
If margins remain resilient, the bull market could continue.
If margins begin falling sharply, however, earnings expectations may have to come down, and valuations could follow.
That makes 2027 potentially less about whether the economy grows and more about how much of that growth companies are actually able to keep.
For stock investors, that is a distinction worth watching closely.






