The Stock Market and How It Works: A Comprehensive Analysis for Serious Investors
The stock market and how it works can be described in one sentence: it is a system where buyers and sellers continuously negotiate the price of ownership stakes in businesses. Everything else, the exchanges, the indices, the order types, the clearing houses, the regulations, is infrastructure built around that one fundamental transaction. Understanding the infrastructure makes you a better investor. Understanding the fundamental transaction makes you a great one.
This analysis covers both. It starts with the mechanical layer, how exchanges match orders and set prices, then moves to the economic layer, how aggregate investor behavior creates valuation cycles, and finishes with the analytical layer, what the numbers tell you when you know how to read them. The ValueMarkers screener covers 120+ indicators across 73 global exchanges, and this analysis explains what you are seeing when you use it.
Key Takeaways
- The stock market is a continuous price-discovery mechanism, not a prediction machine. Prices reflect the current aggregate opinion of millions of participants about future cash flows, discounted to the present.
- The U.S. equity market has two primary exchanges, the NYSE and Nasdaq, plus dozens of alternative trading venues that fragment and reconsolidate liquidity through the National Best Bid and Offer system.
- Long-run equity returns come from three sources: earnings growth, dividend yield, and changes in valuation multiples. The third is the most volatile and the least predictable.
- As of April 2026, the S&P 500 trades at a trailing P/E near 22.8 and a dividend yield near 1.4%. Historical analysis suggests these starting conditions favor 5% to 7% annualized real returns over the next decade.
- Value investors outperform over long periods by buying businesses at prices where the market is embedding pessimistic assumptions about future cash flows, then waiting for those assumptions to prove wrong.
- The VMCI Score (Value 35%, Quality 30%, Integrity 15%, Growth 12%, Risk 8%) provides a structured framework for evaluating any stock across all five of the dimensions that drive long-run returns.
How Exchanges Work: the Mechanical Layer
A stock exchange is a regulated marketplace where standardized contracts, shares of stock, are bought and sold through a centralized matching system. The NYSE and Nasdaq together handle the majority of U.S. equity volume, though dozens of alternative trading systems (ATS) and dark pools handle a significant fraction.
When you place a market order to buy 100 shares of AAPL, that order enters an electronic matching engine. The engine scans the existing order book for sellers willing to part with AAPL shares at the best available ask price. If a match exists, the trade executes in milliseconds. If not, your order waits or gets partially filled.
Limit orders work differently. You specify the maximum price you are willing to pay. If AAPL is trading at $235 and you place a limit buy at $228, your order sits in the book until either a seller comes down to $228 or you cancel it. Limit orders protect you from paying more than you intended. They also mean you sometimes miss trades when prices move quickly.
The spread between the best bid and the best ask represents an implicit transaction cost. For large-cap liquid stocks like AAPL, MSFT, or JNJ, that spread is typically $0.01 to $0.05. For small-cap stocks on less liquid exchanges, it can be several percent of the share price, which matters significantly for total return calculations over time.
Price Discovery: How Markets Set Prices
Price discovery is the process by which all available information gets incorporated into a stock's price through the continuous interaction of buyers and sellers. It is why stock prices move constantly during trading hours even when a company releases no news.
Information arrives continuously: a supplier announces a shipping delay, a competitor reports earnings, a central bank releases meeting minutes, a hedge fund rebalances its portfolio. Each piece of information causes some participants to update their estimate of a company's intrinsic value, leading them to buy or sell. The resulting price moves reflect the aggregate update.
The efficient market hypothesis argues this process works so well that prices always reflect all available information, making it impossible to consistently outperform by analyzing public data. The evidence is more nuanced. Markets incorporate easily processed information quickly. They are less efficient at processing complex, multi-year information that requires synthesizing accounting data, industry dynamics, and competitive positioning across hundreds of variables. That is where fundamental analysis earns its keep.
Warren Buffett's six-decade track record, and the long-run outperformance of systematic value strategies documented across dozens of academic studies, suggests the market is not fully efficient at valuation across all time horizons. Mispricings exist. They close eventually. Patient investors who identify them earn the excess return.
What Moves Stock Prices: the Four Drivers
Four forces drive individual stock prices over different time horizons.
Earnings reports (short-term, quarterly). When a company reports earnings above or below analyst expectations, the stock typically adjusts sharply. AAPL reporting quarterly EPS of $2.40 when analysts expected $2.10 often produces a 3% to 6% next-day move. The adjustment reflects the market updating its estimate of annual run-rate earnings.
Earnings growth trajectory (medium-term, 1 to 3 years). Over 12 to 36 months, stock prices track earnings per share growth more closely than any other single variable. A company growing EPS at 15% annually will typically see its share price follow a similar trajectory if the valuation multiple holds steady.
Valuation multiple expansion or contraction (medium to long-term). This is the most volatile driver. When investor sentiment shifts from pessimistic to optimistic, P/E multiples expand. Multiple expansion can add 30% to a stock's price even if earnings do not change. Multiple contraction can erase 30% even when earnings are growing. Both moves eventually mean-revert.
Dividend and capital return policy (long-term, income-focused). Companies that grow dividends consistently over decades, KO with its 3.0% yield and 60+ years of consecutive growth, JNJ with its 3.1% yield, attract long-term holders whose buying creates floor demand during market declines.
| Price Driver | Time Horizon | Predictability | How to Track |
|---|---|---|---|
| Earnings reports | Days to weeks | Low (binary surprise) | Analyst estimates, earnings calendars |
| Earnings growth trajectory | 1 to 3 years | Moderate | Revenue trends, margin history, ROIC |
| Multiple expansion or contraction | 1 to 5 years | Low | Market P/E cycles, interest rate environment |
| Dividend growth policy | 5 to 20 years | High for quality companies | Payout ratio, free cash flow coverage |
The Role of Indices: What S&P 500 and Dow Jones Actually Measure
Equity indices are aggregates, not investments. The S&P 500 is a market-cap weighted index of 500 large U.S. companies maintained by a committee at S&P Dow Jones Indices. The Dow Jones Industrial Average is a price-weighted index of 30 names chosen by an editorial committee.
Neither index is a passive, mechanical representation of the U.S. economy. Both are curated. The S&P 500 excludes companies with negative earnings in the most recent four quarters, which means it systematically overweights profitable companies. The Dow overweights high-price-per-share companies regardless of market cap, which is why UnitedHealth at $540 per share carries roughly 11% of the Dow's weight while Apple at $235 carries only 4.8%, despite Apple being worth significantly more by market capitalization.
For serious investors, index levels are market sentiment gauges, not valuation anchors. The more useful data points are aggregate index metrics: the S&P 500's current trailing P/E near 22.8, its dividend yield near 1.4%, and its earnings yield of roughly 4.4% compared to the 10-year Treasury yield near 4.3%.
When the earnings yield on stocks sits near the Treasury yield, the equity risk premium is historically low. Stocks are not cheap relative to bonds. That condition has preceded periods of flat or below-average equity returns in historical analysis.
Market Cycles: How Valuation and Psychology Interact
Stock markets move in cycles that blend economic reality with mass psychology. Understanding the structure of these cycles does not allow you to time them. It helps you avoid making the worst decisions at the worst moments.
Bull markets begin when valuations are depressed and pessimism is widespread. Prices rise as earnings recover. Early movers are value investors who bought when the news was worst. Then sentiment improves, more participants enter, and multiple expansion begins to drive returns alongside earnings growth. Late-stage bull markets carry high P/E ratios, low dividend yields, and widespread optimism. The S&P 500's P/E exceeded 30 during the peak of the technology bubble in 2000 and again in late 2021.
Bear markets begin when valuations are stretched and a catalyst triggers a re-rating. The decline has two stages: the first driven by multiple contraction as investors demand higher earnings yields, the second sometimes driven by actual earnings deterioration if the catalyst is economic rather than purely psychological.
For individual stock selection, cycles matter primarily because they affect your entry price. Buying AAPL at P/E 40 in a late-cycle bull market and selling at P/E 22 in a bear market produces a loss even if earnings per share grew during the period. Buying at P/E 22 and selling at P/E 30 produces a gain even if earnings were flat. The multiple matters as much as the business.
How to Read a Company's Fundamental Data
Every publicly traded company files periodic financial reports with regulators. In the U.S., the 10-K (annual) and 10-Q (quarterly) contain the income statement, balance sheet, and cash flow statement. These three together tell you nearly everything fundamental analysis requires.
Income statement: Revenue, gross profit, operating income, net income, and earnings per share. The most important single line for value investors is operating income, because it strips out financing decisions that can obscure operating performance.
Balance sheet: Assets, liabilities, and shareholders' equity. Key ratios: debt-to-equity (total debt divided by shareholders' equity), current ratio (current assets divided by current liabilities), and book value per share. BRK.B at P/B 1.5 means investors pay $1.50 for every $1.00 of book value. For a business with Berkshire's capital allocation quality, that modest premium has historically been justified.
Cash flow statement: Operating cash flow, investing cash flow, and financing cash flow. Free cash flow equals operating cash flow minus capital expenditures. A business with free cash flow well above net income is often more conservatively accounted than it appears. AAPL generates approximately $110 billion in annual free cash flow against net income of roughly $100 billion, a strong accounting quality signal.
ROIC: the Single Most Predictive Fundamental Metric
Return on Invested Capital measures how efficiently a company converts the capital it employs into operating profit. It is calculated as after-tax operating income divided by total invested capital (debt plus equity, net of cash).
ROIC above the company's weighted average cost of capital (WACC) means the business is creating value. ROIC below WACC means it is destroying value, even while reporting positive nominal returns.
AAPL's ROIC of 45.1% is exceptional. MSFT's ROIC of 35.2% is also exceptional. JNJ at roughly 16.2% is solid and consistent. The median S&P 500 company generates ROIC near 11% to 12%, and the weighted average cost of capital for large U.S. companies runs approximately 8% to 9%.
Companies with ROIC consistently above 20% tend to compound shareholder value at above-market rates over long periods. They can reinvest earnings at high rates of return, which compounds the advantage. The ValueMarkers VMCI Score's Quality pillar, weighted at 30%, captures ROIC as its central metric.
| Company | ROIC | Trailing P/E | 5-Year EPS Growth | VMCI Category |
|---|---|---|---|---|
| AAPL | 45.1% | 28.3 | 14.2% | Quality Compounder |
| MSFT | 35.2% | 32.1 | 16.8% | Quality Compounder |
| JNJ | 16.2% | 14.1 | 4.1% | Value Quality |
| KO | 11.8% | 24.0 | 5.3% | Dividend Stalwart |
| BRK.B | Variable | N/A | N/A | Capital Allocator |
| S&P 500 Median | 11.4% | 22.8 | 8.4% | Benchmark |
Dividend Investing Within the Stock Market Framework
Dividends are a return of cash from the company to shareholders, funded from free cash flow. A company that declares a dividend it cannot cover with free cash flow is either drawing down its balance sheet or will eventually cut the payout.
JNJ's 3.1% dividend yield with a 44% payout ratio and ROIC of 16.2% represents a sustainable, growing income stream. The payout ratio leaves enough retained earnings for reinvestment and future dividend growth. The ROIC means the reinvested portion earns an attractive return rather than being wasted on capital-destroying projects.
KO's 3.0% yield with 60+ years of consecutive dividend growth represents a different profile: slower growth but extraordinary longevity and predictability. The dividend has survived the Great Depression, two world wars, multiple recessions, and every market crash in the past century. That track record has material value for investors who need income certainty.
The dividend yield of an index or individual stock is also a valuation signal. Historically, when the S&P 500 yield has risen above 4%, forward 10-year returns have averaged above 10% annually. When it has fallen below 2%, they have averaged below 6%. At 1.4% as of April 2026, the dividend yield signal is consistent with below-average expected returns from broad index investment, reinforcing the case for selectivity over passive exposure.
How the ValueMarkers VMCI Score Applies the Framework
The VMCI Score translates the analytical framework above into a single, actionable composite for each stock. The five pillars map directly to the concepts this analysis covers.
Value (35%): is the stock cheap relative to its earnings, cash flows, or assets? This captures valuation multiples and the dividend yield signal.
Quality (30%): does the business generate strong ROIC, ROE, and free cash flow? This captures earnings quality and compounding potential.
Integrity (15%): does the company's reported accounting reflect economic reality? This protects against false positives that pass value and quality screens but carry hidden accounting risk.
Growth (12%): is the business growing earnings and revenue at an above-average rate? This captures the earnings growth trajectory driver.
Risk (8%): is the balance sheet sound? Is volatility within acceptable bounds? This captures debt load and beta risk dimensions.
A stock scoring 9.0 or above across all five pillars represents one of the strongest investment-quality situations the screener surfaces. Stocks scoring below 5.0 typically carry disqualifying weaknesses in at least two dimensions.
What Global Equity Markets Add to the Analysis
The U.S. equity market represents roughly 60% of global market capitalization as of 2026. The remaining 40% spans Europe, Japan, Asia Pacific, emerging markets, and frontier markets. Each has its own valuation cycle, currency dynamics, and regulatory environment.
For value investors, the practical implication is that global screening reveals opportunities not visible in a U.S.-only search. European equities often trade at P/E discounts to U.S. equivalents of 30% to 40%, partly due to sector composition differences (more financials and energy, fewer technology giants) and partly due to investor preference for U.S. market liquidity.
Whether that discount is justified or represents an opportunity depends on the specific company. A European industrial with ROIC above 20%, debt-to-equity below 0.5, and dividend yield above 3% trading at P/E 12 while its U.S. equivalent trades at P/E 18 warrants investigation. The ValueMarkers screener surfaces those comparisons across 73 exchanges, applying consistent VMCI methodology regardless of listing country.
Common Mistakes Investors Make About How the Stock Market Works
Understanding the stock market and how it works also means identifying analytical mistakes that cost investors money.
Confusing price movement with value change. When AAPL drops 5% on a bad macro day, its ROIC of 45.1% does not change. Its P/E moves from 28.3 to 26.9. A lower price for the same business is better for new buyers, not worse. Many investors have the reaction backwards.
Treating short-term earnings as long-term signals. One quarter of earnings below expectations rarely changes the intrinsic value of a durable business. The market often overreacts to single data points. The investor who maintains a long-term valuation framework through short-term noise benefits from that overreaction.
Ignoring the starting valuation. The single most reliable predictor of long-run equity returns is the starting P/E or earnings yield. Buying a great business at P/E 50 is often a worse investment than buying a moderate business at P/E 8. Many investors focus entirely on business quality and ignore whether the current price already reflects that quality.
Diversifying without thought. Owning 50 stocks in the same sector provides almost no diversification. Owning 15 stocks across genuinely different economic drivers provides substantial diversification. The ValueMarkers screener lets you filter by sector, geography, and VMCI pillar score simultaneously to build genuinely diversified watchlists.
Building a Framework for Stock Market Analysis
The most consistent long-term investors share a common analytical framework. They know what they are looking for before they start screening. They define their criteria, apply them through the screener, research the companies that pass, and make investment decisions with a clear thesis.
A complete framework includes:
- Valuation criteria: P/E, P/B, EV/EBITDA, or free cash flow yield thresholds based on your required return
- Quality criteria: ROIC, ROE, and earnings growth minimums that define the business quality floor
- Safety criteria: debt-to-equity, interest coverage, and Piotroski Score to filter out financial risk
- VMCI filter: composite score above 7.5 to ensure all dimensions are acceptable simultaneously
- Qualitative overlay: competitive position, management quality, and industry structure assessment
Running steps 1 through 4 through the ValueMarkers screener takes under ten minutes. Step 5 is where the hours of real research go. The screener concentrates that research on companies worth the time.
The stock market and how it works is ultimately a matching system, connecting businesses that need capital with investors willing to provide it in exchange for a share of future profits. The price at which that match happens reflects everything both sides know. The edge for the serious investor is in knowing something the aggregate market is not pricing correctly, a turnaround the market has given up on, a quality business being penalized for a one-time event, or a dividend grower being ignored because its growth rate looks unexciting.
That edge does not require being smarter than everyone else. It requires being more disciplined, more patient, and more focused on fundamentals than the average market participant chasing last quarter's best performers.
Further reading: SEC EDGAR · Investopedia
Why how stock markets work Matters
This section anchors the discussion on how stock markets work. The detailed treatment, formula, and worked examples appear in the body of this article above. The points below summarize the most important takeaways for value investors who want to apply how stock markets work in real portfolio decisions. ValueMarkers exposes the underlying data on every covered ticker via the screener and stock profile pages, so the concepts in this article translate directly into actionable filters.
Key inputs for how stock markets work
See the main discussion of how stock markets work in the sections above for the full treatment, including the inputs, the calculation methodology, the typical sector benchmarks, and the most common pitfalls to avoid. The ValueMarkers screener lets value investors filter the full universe of 100,000+ stocks across 73 exchanges using how stock markets work alongside the rest of the 120-indicator composite, with sector percentiles and historical trends shown on every stock profile.
Sector benchmarks for how stock markets work
See the main discussion of how stock markets work in the sections above for the full treatment, including the inputs, the calculation methodology, the typical sector benchmarks, and the most common pitfalls to avoid. The ValueMarkers screener lets value investors filter the full universe of 100,000+ stocks across 73 exchanges using how stock markets work alongside the rest of the 120-indicator composite, with sector percentiles and historical trends shown on every stock profile.
Related ValueMarkers Resources
- Pb Ratio — Glossary entry for Pb Ratio
- Pe Ratio — Glossary entry for Pe Ratio
- Roe — Glossary entry for Roe
- What Is A Stock Screener — related ValueMarkers analysis
- Stock Valuation Explained — related ValueMarkers analysis
- Investing Activities On Cash Flow Statement — related ValueMarkers analysis
Frequently Asked Questions
what happens if the stock market crashes
When the stock market crashes, prices fall sharply and broadly. The 2008 financial crisis saw the S&P 500 fall roughly 57% from peak to trough. The 2020 COVID crash fell 34% in 33 days before recovering completely. The pattern after severe crashes is consistent: companies with strong balance sheets, high ROIC, and durable business models recover first and fully. Companies carrying heavy debt or operating in structurally impaired industries often do not recover. JNJ, with its ROIC near 16%, debt-to-equity of 0.44, and 60+ year dividend streak, has navigated every major market crash without cutting its dividend. Preparation through screener-based quality filtering is the most reliable crash-proofing strategy available to individual investors.
what time does the stock market open
U.S. stock markets, the NYSE and Nasdaq, open at 9:30 a.m. Eastern Time on weekdays. Pre-market trading begins at 4:00 a.m. Eastern on most major brokerages, and after-hours trading extends until 8:00 p.m. Eastern. Most earnings releases and Federal Reserve announcements happen either before market open or after close, which is when the largest overnight price adjustments occur. Fundamental investors rarely need to be watching at open or close. Their edge comes from the analysis done between sessions.
are stock markets closed today
U.S. stock markets are closed on nine standard federal holidays: New Year's Day, Martin Luther King Jr. Day, Presidents' Day, Memorial Day, Juneteenth, Independence Day, Labor Day, Thanksgiving, and Christmas. They also close early at 1:00 p.m. Eastern on the trading days before Thanksgiving and Christmas. For global markets, the ValueMarkers screener covers 73 exchanges that each follow their own national holiday calendars, so a U.S. holiday does not necessarily mean your international positions stopped trading.
what time does the stock market close
The NYSE and Nasdaq close at 4:00 p.m. Eastern Time on regular trading days. Shortened session days close at 1:00 p.m. Eastern. After-hours trading continues to 8:00 p.m. Eastern on most platforms, but liquidity thins significantly after 5:00 p.m. For fundamental investors, the closing price matters primarily because it determines the P/E, EV/EBITDA, and other price-based ratios your screener shows the following morning when the day's prices are incorporated into the dataset.
when does the stock market open
The NYSE and Nasdaq open at 9:30 a.m. Eastern Time. For the 73 global exchanges the ValueMarkers screener covers, opening times follow local schedules: London Stock Exchange at 8:00 a.m. GMT, Deutsche Boerse at 9:00 a.m. CET, Tokyo Stock Exchange at 9:00 a.m. JST, Hong Kong Stock Exchange at 9:30 a.m. HKT, and Bombay Stock Exchange at 9:15 a.m. IST. Most fundamental data on the screener updates from prior-day closes rather than real-time feeds, so your morning screen reflects prices and ratios as of the previous session regardless of which exchange you are analyzing.
why is the stock market down today
The stock market falls on specific days for specific reasons: a worse-than-expected CPI print, a hawkish Federal Reserve statement, a geopolitical escalation, a major earnings miss from a heavily weighted index constituent, or institutional rebalancing that creates temporary selling pressure. For fundamental investors, the correct response to a down day is to check whether any watchlist companies have crossed into price ranges where your valuation screen signals an attractive entry. AAPL at $190 would trade at a P/E near 22, inside the range where the DCF calculator produces a positive margin of safety. That is when a market being down today becomes a portfolio opportunity.
Start applying the analytical framework from this analysis with the ValueMarkers academy, where each concept, from P/E interpretation to ROIC calculation to VMCI screening, is covered with step-by-step guidance and live screener examples.
Written by Javier Sanz, Founder of ValueMarkers. Last updated April 2026.
Ready to find your next value investment?
ValueMarkers tracks 120+ fundamental indicators across 100,000+ stocks on 73 global exchanges. Run the methodology above in seconds with our stock screener, or see today's top-ranked names on the leaderboard.
Related tools: DCF Calculator · Methodology · Compare ValueMarkers
Disclaimer: This content is for informational and educational purposes only and does not constitute investment advice, a recommendation, or an offer to buy or sell any security. Past performance does not guarantee future results. Consult a licensed financial advisor before making investment decisions.