Why a Stock That Rises on Its First Trading Day Can Still Lose Money for Some Investors: Return Baselines and Price Calculations
This article explains why the same stock price can produce very different returns for different investors. Using a hypothetical IPO example, it compares the offer price, opening price, and closing price, shows how each return metric is calculated, and covers the factors that affect actual trade execution and net returns. It also outlines how developers can model and display price changes and account returns without mixing them up.
1. Start with the baseline: a price change is not everyone’s return
When a headline says a company “rose about 17% on its first day of trading,” many readers assume that buying the stock that day would earn close to 17%.
The problem is that this statement usually leaves out a key condition: rising relative to which price?
On the first day of trading, three prices are commonly cited: the offer price, the opening price, and the closing price. Each belongs to a different stage of trading and serves a different analytical purpose. If investors bought at different costs, two people holding the same number of shares and checking their accounts at the same moment could show a gain for one and a loss for the other.
The example below uses hypothetical figures that only illustrate the calculation logic. They do not correspond to any confirmed listing.
| Item | Hypothetical price |
|---|---|
| Offer price | $83.00 per share |
| Opening price | $111.50 per share |
| First-day closing price | $97.17 per share |
| Shares held | 100 shares per investor |
Investor A receives an allocation in the IPO. Investor B buys at the market open on the secondary market. To keep the comparison simple, this example excludes commissions, taxes, exchange rate changes, and financing costs, and assumes that Investor B’s average execution price equals the opening price.
The value of this example is not in predicting any particular stock. It shows a general principle:
A market price change must be tied to a comparison baseline, and an individual investor’s return must be tied to that investor’s actual cost.
2. Same 100 shares, why does one investor profit and the other lose?
1. Return for the IPO allocation investor
Investor A’s initial investment is:
83 × 100 = $8,300.
At the close, the 100 shares are worth:
97.17 × 100 = $9,717.
Investor A’s paper profit is therefore:
$9,717 - $8,300 = $1,417.
The corresponding return is:
1,417 ÷ 8,300 ≈ 17.07%.
The 17.07% here is the closing price relative to the offer price. In the context of an initial public offering, reports describing a “first-day gain” often use this comparison. However, the exact figures should follow the calculation rules disclosed in the relevant report or market data page.
2. Return for the investor who buys at the open
Investor B also buys 100 shares, but pays $111.50 per share, for a total cost of:
111.50 × 100 = $11,150.
At the close, the position is still worth $9,717. However, the paper profit and loss becomes:
$9,717 - $11,150 = -$1,433.
The corresponding return is:
-1,433 ÷ 11,150 ≈ -12.85%.
The two results do not contradict each other. At the close, the stock has only one market price, but investors can have very different cost bases.
You can check the calculations with a simple identity:
Investor A’s profit - Investor B’s profit
= $1,417 - (-$1,433)
= $2,850.
This matches the difference in their initial investments:
$11,150 - $8,300 = $2,850.
When the number of shares, the valuation time, and the excluded fees are the same, the difference in final profit and loss comes entirely from the difference in initial cost.
3. Three return metrics, each answering a different question
To avoid misreading, the metrics that are easily confused need to be clearly separated.
1. Opening price relative to offer price
The formula is:
Opening premium to offer price = opening price ÷ offer price - 1.
Using the example:
111.50 ÷ 83 - 1 ≈ 34.34%.
This metric answers: how much higher was the price when the stock started trading on the secondary market than the offer price?
It describes the pricing gap at the open, but it cannot be treated as the return a typical investor would earn. Only an investor who actually acquired shares at the offer price and could sell at a corresponding price could realize a return close to this figure.
2. Closing price relative to offer price
The formula is:
First-day gain relative to offer price = closing price ÷ offer price - 1.
Using the example:
97.17 ÷ 83 - 1 ≈ 17.07%.
This metric describes the overall first-day performance of the stock compared with its offer price. It does not represent the return of every investor who bought that day.
3. Closing price relative to opening price
The formula is:
Open-to-close return = closing price ÷ opening price - 1.
Using the example:
97.17 ÷ 111.50 - 1 ≈ -12.85%.
This metric describes the price change from the opening price to the closing price. An investor’s position return equals this figure only if the actual execution price matches the opening price, no other trades occur in between, and fees are ignored.
Therefore, “up 17.07% from the offer price” and “down 12.85% from the opening price” can both be true at the same time. The real risk is not a conflict between the numbers. It is that the presentation hides the denominator.
4. The opening premium fades: by how much?
In the example, the opening price is above the offer price:
$111.50 - $83.00 = $28.50.
The closing price is also above the offer price:
$97.17 - $83.00 = $14.17.
From the open to the close, the price falls by:
$111.50 - $97.17 = $14.33.
If the premium is defined as the per-share gap above the offer price, the premium shrinks by:
14.33 ÷ 28.50 ≈ 50.28%.
In other words, the amount by which the opening price exceeded the offer price fell by about half by the close.
However, this does not mean the stock fell by about 50%. The stock’s decline from the open to the close is still 12.85%, because that metric uses $111.50 as the denominator, not $28.50.
This example also shows a common pitfall in percentage figures. The same $14.33 change produces different percentages depending on the base. A percentage has a clear meaning only after the base is stated.
5. Why can the offer price and the opening price differ?
The IPO pricing and secondary market trading belong to different stages, and supply and demand conditions in each stage are not identical.
The offer price is set before public trading begins, based on the offering structure, investor demand, valuation judgments, and market conditions. The number of offered shares is limited, and allocations are subject to applicable rules and eligibility requirements. Investors should not assume that everyone can buy at the offer price.
The opening price is formed under the opening mechanism set by the trading venue, based on the buy and sell orders submitted at that time. In the early days of trading, the price can be influenced by attention, the number of shares available for trading, investor expectations, market conditions, and the distribution of orders.
Therefore, the offer price is not a floor for the stock’s price after listing, and the opening price is not a well-tested measure of long-term fair value. An opening price above the offer price shows only that the two stages produced different prices. It does not prove that the IPO was mispriced, and it does not show that the price will rise or fall later.
Similarly, an allocation investor profiting in one case does not mean that taking part in an allocation is inherently low risk. If the closing price falls below the offer price, the allocation investor can also record a loss.
6. An opening price is not a price every investor can get
In a teaching example, setting the investor’s execution price equal to the opening price makes the difference in return calculations easier to see. Real trading, however, requires separating the market price from an individual’s trade records.
The opening price shown in market data is a data point set by the trading venue’s rules. It does not mean that every order submitted near the open will be filled at that price.
Actual fills can depend on the following factors:
- Order type: A market order prioritizes execution but does not guarantee the execution price. A limit order constrains the price but may not be filled.
- Market depth: The quantity available at a given price is limited, so a large order may be filled across several price levels.
- Order arrival time: Submission time, transmission delays, and the order in which trades are processed can all affect the outcome.
- Trading status: Price volatility, trading halts, or other rules can change how an order is executed.
When one purchase is filled in several parts, cost analysis should use the average price weighted by the executed quantities:
Average execution price = total executed amount ÷ total executed shares.
An investor’s return should not be calculated from the market’s opening price just because an order was submitted near the open.
7. From price return to net return
The earlier calculations consider only the purchase price and the end-of-period valuation. They explain the basic relationships. Actual account analysis also needs clear definitions of fees and valuation methods.
In a simplified case with one purchase, no sale, no dividends, and no other cash flows:
Total cost basis = executed amount + purchase-related fees.
Unrealized profit and loss = current market value of the position - total cost basis.
Unrealized return = unrealized profit and loss ÷ total cost basis.
This result is still an unrealized figure. The current market value is usually calculated from a reference price, which does not guarantee that the whole position could be sold at that price.
If the position has been fully sold, use the actual net proceeds:
Realized profit and loss = sale proceeds - selling-related fees - total cost basis.
If the account holds foreign-currency assets, the analysis must also specify whether returns are measured in the trading currency or the account’s base currency. Even if a stock rises in its trading currency, exchange rate changes can reduce the return in the base currency or turn it negative.
When an account includes multiple trades, partial sales, dividends, or ongoing contributions, a simple “ending value minus starting value” formula usually cannot describe all the returns. The analysis should use cost accounting and return methods that suit its purpose.
8. How should market data and account systems be designed?
For developers, this case is not only a financial knowledge problem. It is also a question of metric modeling and interface design.
1. Do not store a single, ambiguous percentage change
A “price change” should be linked to at least the following information:
| Information | Purpose |
|---|---|
| Current price | Specifies the price used in this calculation |
| Reference price | Specifies the denominator of the return |
| Baseline type | Distinguishes the offer price, the opening price, or the previous day’s closing price |
| Price timestamp | Prevents mixing data from different trading sessions |
| Currency | Prevents direct comparison across currencies |
| Data status | Distinguishes real-time, delayed, confirmed closing, or missing data |
The same stock can show several metrics at once, but each metric should have a clear label. For example, “Up 17.07% from the offer price” is less likely to be misread than a bare “Up 17.07%.”
2. Calculate market performance and individual returns separately
The market module answers “what happened to the price?” The personal asset module answers “how much did this user earn?”
The first depends on market reference prices. The second also depends on the user’s actual execution records, quantities, fees, and position changes. The two should not share a single, undifferentiated return field.
The pseudocode for this example can be written as follows:
function calculate_holding_return(cost_basis, current_price, shares):if cost_basis <= 0:return "not calculable"if current_price is missing or shares < 0:return "data error"current_market_value = current_price × sharesunrealized_pnl = current_market_value - cost_basisreturn unrealized_pnl ÷ cost_basis
This logic applies only to simplified cases where the total cost is known, the position is a regular long holding, and there are no additional cash flows. It cannot replace a complete brokerage accounting system.
3. Precision and exception handling matter just as much
Financial calculations should use numeric types suited to decimal currency amounts. Each step should have defined precision and rounding rules, so that binary floating-point arithmetic does not introduce unnecessary rounding differences when amounts accumulate.
Calculated values and display values should also be kept separate. Store enough precision internally, and round only when formatting for the interface. Avoid rounding too early.
For missing prices, zero baselines, mixed currencies, and values that span trading sessions, the system should return an explicit status instead of forcing out a percentage that looks normal.
9. Three questions to ask when reading a return figure
When you see a claim like “shares rose on the first day of trading,” the most useful step is not deciding right away whether to buy. Instead, ask three questions.
First, compared with what price? The offer price, the opening price, or the previous day’s closing price?
Second, is this price my actual cost? Seeing a price does not mean you can trade at that price.
Third, is this a market price change, a personal unrealized return, or a realized return after trading costs?
In this example, 17.07% and -12.85% describe price changes from different starting points, and both can be calculated correctly. The confusion comes from applying a market statistic directly to every investor.
Whether you are reading financial news or building a market data page, an asset dashboard, or a return analysis module, the same principle applies: every return figure must state its starting point, ending point, time range, and cost basis. Only when these are clear can the numbers be compared, and only then do they help with judgment.
