Adjusted Close Price: How Splits and Dividends Change It
· OkamiStocks Team · 13 min read
The adjusted close price is a past closing price restated so it can be compared with today's prices. It takes the close as it actually printed and corrects it for corporate actions that happened later, mainly stock splits and cash dividends. A raw close tells you what a share cost that day. An adjusted close tells you what that price means in terms of today's shares.
If you pull daily bars for a backtest, a chart or a spreadsheet, the difference decides whether your numbers are right. This guide explains close vs adjusted close, how the split and dividend factors are calculated, a worked example with one split and one dividend, why adjusted history changes after the fact, and which adjustment to request from the OkamiStocks API for each job.
Close vs adjusted close
The close (or raw close) is the last price of the regular session, exactly as it traded. It never changes once the day is over.
The adjusted close is that same number multiplied by a factor that accounts for every split and dividend between that day and now. On the most recent day the two are identical. The further back you go, and the more actions the company has had since, the further apart they drift.
A split changes the price per share without changing what a holder owns. FINRA's example: in a 2-for-1 split, 10 shares worth $100 each become 20 shares worth $50 each, and "the total value of those shares is the same as it was before the split: $1,000" (FINRA, A Piece-by-Piece Guide to Stock Splits). In a raw series, that split looks like a 50% crash. In a split-adjusted series, it doesn't appear at all.
A cash dividend is smaller but real: on the ex-date the share no longer carries the payment, so its price typically adjusts down by about that amount. The market's own plumbing assumes this. Under FINRA Rule 5330, on the ex-dividend date a member firm reduces the price of open buy limit orders and sell stop orders by the dividend amount, unless the order is marked "Do Not Reduce" (FINRA Rule 5330). An adjusted close removes that drop from history, so a backtest doesn't count paying a dividend as a loss.
If the dates themselves (declaration, record, ex-date, payment) are new to you, our guide to what corporate actions are covers them, including the 2024 change to the ex-date rule.
How the adjustment factors work
Every adjustment is a multiplier applied to all prices before the action's ex-date. Prices on or after the ex-date stay as they traded.
Splits
For a split, the factor is the inverse of the ratio. A 2-for-1 split multiplies earlier prices by 0.5; a 4-for-1 split by 0.25; a 1-for-10 reverse split by 10. Volume moves the other way: after a 2-for-1 split, earlier volumes are doubled, so a 1,000,000-share day becomes 2,000,000 shares in today's units.
Cash dividends
The common convention multiplies earlier prices by 1 - dividend / prior close, where the prior close is the close on the day before the ex-date. Yahoo Finance's help page, for example, describes its adjusted close this way: split and dividend multipliers following CRSP standards, with the dividend multiplier calculated from the dividend as a percentage of price, mainly so old prices can never go negative, as they could if you subtracted the dividend from them. Its example: a $0.08 dividend after a $24.96 close gives 1 - 0.08 / 24.96 = 0.9968 (Yahoo Help, What is the adjusted close?).
A dividend adjusts prices only. It never changes volume, because no new shares exist.
Cumulative factors
When a stock has several actions, the factors multiply. A day before a 2-for-1 split and a dividend with a 0.99 multiplier gets 0.5 x 0.99 = 0.495. CRSP (the Center for Research in Security Prices) describes it the same way: pick an adjustment base date where everything is unadjusted ("usually chosen to be the last available day of trading"), then convert every other day by the cumulative factor of the events between it and the base date, applying each event on its ex-distribution date (CRSP Data Description Guide, Chapter 5: CRSP Calculations, copy hosted by the University of Michigan).
One detail worth knowing: "adjusted" doesn't mean the same thing everywhere. CRSP's adjusted prices account for splits, stock dividends and distributions with a price factor such as spin-offs, but its Factor to Adjust Price is set to zero for ordinary cash dividends (CRSP Data Description Guide, Chapter 4: Data Definitions). CRSP adds the dividends back in its total-return formula instead. Other sources fold dividends into the adjusted price itself. Before you compare two adjusted series, find out which kind each one is.
A worked example: one split, one dividend
A hypothetical stock, XYZ, over eight trading days. It splits 2-for-1 with an ex-date of March 5, then pays a $1.04 dividend with an ex-date of March 10. The close on March 9, the day before the ex-date, is $104.00, so the dividend multiplier is 1 - 1.04 / 104.00 = 0.99.
| Date | Raw close | Split-adjusted | Split and dividend adjusted | Cumulative price factor |
|---|---|---|---|---|
| Mar 2 | 200.00 | 100.00 | 99.00 | 0.495 |
| Mar 3 | 202.00 | 101.00 | 99.99 | 0.495 |
| Mar 4 | 204.00 | 102.00 | 100.98 | 0.495 |
| Mar 5 (split) | 102.40 | 102.40 | 101.38 | 0.99 |
| Mar 6 | 103.00 | 103.00 | 101.97 | 0.99 |
| Mar 9 | 104.00 | 104.00 | 102.96 | 0.99 |
| Mar 10 (ex-dividend) | 103.60 | 103.60 | 103.60 | 1 |
| Mar 11 | 104.20 | 104.20 | 104.20 | 1 |
What each column says about returns:
- Raw close. March 4 to March 5 is a 49.80% "loss", and the whole period shows -47.90%. Neither happened to anyone holding the stock.
- Split-adjusted. March 4 to March 5 is +0.39%, the real move. The ex-dividend day shows -0.38%, because the dividend's price drop is still in the series. The period return is +4.20%, the price-only return.
- Split and dividend adjusted. The ex-dividend day becomes +0.62%, and the period return is 104.20 / 99.00 - 1 = +5.25%, which treats the dividend as reinvested.
That last figure is close to a true total return, not identical to it. Holding the shares and counting the cash, the ex-dividend day returned (103.60 + 1.04) / 104.00 - 1 = 0.615%, where the adjusted series gives 0.622%. The multiplier method effectively reinvests the dividend at the prior close minus the dividend, not at the price the stock actually traded at. For most uses the gap is noise; for a strict total-return calculation, use raw prices and the dividend amounts.
Volume follows the split only: March 2 to 4 become 2,000,000, 2,200,000 and 1,800,000 shares if the raw figures were 1,000,000, 1,100,000 and 900,000. The dividend changes no volume.
Why adjusted history changes after the fact
Adjusted prices are anchored to the latest day. Every new split or dividend multiplies every earlier price by a new factor.
Suppose XYZ pays another dividend later, $1.00 after a $100.00 close. That's another 0.99 multiplier, and every adjusted value in the table above, including March 11's 104.20, gets multiplied by it: March 11 becomes 103.16. Nothing about March 11 changed, but its adjusted close did.
Three consequences for code:
- An adjusted close you stored last month may not match today's. Treat adjusted history as derived data. Either re-fetch it after any new action, or store raw bars plus the actions and adjust when you read.
- Returns survive, levels don't. A new action rescales every earlier day by the same factor, so the percentage change between two stored days stays the same. The price levels don't.
- Our own derived values follow the same rule. The documentation for technical indicators says it plainly: nothing is stored, so if the adjusted bars of earlier days change, for example once a new split is applied, those days' values change with them.
Which adjustment to use
The OkamiStocks historical bars endpoint takes an adjustment field with four values: raw (none), split (prices and volume adjusted for stock splits), dividend (prices adjusted for cash dividends), or all (splits, cash dividends and spin-offs). The data behavior notes spell out the volume rule: dividend and spin-off adjustments change prices only, so all adjusts prices for splits, cash dividends and spin-offs, and volumes for splits.
| Job | Adjustment | Why |
|---|---|---|
| Long price chart, moving averages, 52-week ranges | split |
No split cliffs; prices since the last split are as traded |
| Average volume, volume indicators | split or all |
Both adjust volume for splits; dividend doesn't |
| Buy-and-hold backtest that counts dividends | all |
Dividends and spin-offs treated as reinvested |
| Price-only returns | split |
Leaves dividend drops in, by design |
| Checking a fill, a limit level, an intraday VWAP | raw |
Only raw prices ever traded |
| Strict total return | raw plus dividend amounts |
Your own arithmetic, no approximation |
dividend on its own suits a range with no splits in it, or a pipeline that handles splits itself. Across a split, a dividend-only series still shows the crash.
The same choice sits behind other endpoints. The 52-week range endpoint and the technical indicators both default to split, so a split doesn't register as a new 52-week low or a crash in the averages. Our 52 week high guide shows what that does to a range.
Getting adjusted closes from the API
Historical bars are on the Supreme plan; other plans get a 403 with {"message": "Historical data requires a Supreme subscription."}. Send adjustment explicitly, as the documentation's examples do. A cURL request for a split-adjusted daily series:
export OKAMI_API_TOKEN='YOUR_API_TOKEN'
curl https://okamistocks.io/api/v1/quote/historical \
-d token="$OKAMI_API_TOKEN" \
-d ticker=NVDA \
-d start=2024-06-03 \
-d end=2024-06-14 \
-d adjustment=split \
-d timeframe=1Day
That window holds a real split. NVIDIA announced a ten-for-one forward split, with trading expected to begin on a split-adjusted basis at market open on Monday, June 10, 2024 (NVIDIA Form 8-K, May 22, 2024). Here is a Python script that fetches the window twice, raw and split-adjusted, and prints the ratio:
import os
import requests
URL = "https://okamistocks.io/api/v1/quote/historical"
def daily_closes(adjustment):
response = requests.post(
URL,
headers={"Accept": "application/json"},
json={
"token": os.environ["OKAMI_API_TOKEN"],
"ticker": "NVDA",
"start": "2024-06-03",
"end": "2024-06-14",
"adjustment": adjustment,
"timeframe": "1Day",
},
timeout=30,
)
if response.status_code != 200:
raise SystemExit(f"HTTP {response.status_code}: {response.text}")
data = response.json()["data"]
# A daily bar's timestamp marks its start (e.g. 2024-01-02T05:00:00Z): the first 10 characters are the date.
return data["adjustment"], {bar["timestamp"][:10]: bar["close_price"] for bar in data["bars"]}
raw_label, raw = daily_closes("raw")
split_label, split = daily_closes("split")
for day in sorted(raw):
if day in split:
print(day, raw[day], split[day], round(raw[day] / split[day], 2))
Expect a ratio close to 10 for the days before June 10 and close to 1 from June 10 on (as long as no later split has rescaled the split-adjusted series again); it's approximate because prices are published rounded to 2 decimal places. Each call costs one request against your plan's per-minute limit, and a 503 with a Retry-After header means historical data is busy for a moment. An unknown adjustment value is a 422 naming the field (errors and recovery).
Every JSON response echoes the adjustment the bars reflect. A CSV download ("format": "csv") doesn't: the file's columns are timestamp, ticker, open_price, high_price, low_price, close_price, volume and volume_weighted, and the response's adjustment field isn't in it (CSV output). Put the adjustment in the file name or next to the file when you save it.
Doing it yourself in pandas
Raw bars plus a list of actions are enough to build any adjusted series yourself, and it's the way to get a strict total return or full control over the method. Raw closes come from adjustment: raw; dividends come from the corporate actions endpoint, whose cash_dividends entries carry a rate and an ex_date, and splits from its split buckets such as forward_splits. This version reproduces the worked example:
import pandas as pd
bars = pd.DataFrame(
{
"close": [200.00, 202.00, 204.00, 102.40, 103.00, 104.00, 103.60, 104.20],
"volume": [1_000_000, 1_100_000, 900_000, 2_000_000, 2_100_000, 1_900_000, 2_000_000, 1_800_000],
},
index=pd.to_datetime([
"2026-03-02", "2026-03-03", "2026-03-04", "2026-03-05",
"2026-03-06", "2026-03-09", "2026-03-10", "2026-03-11",
]),
)
splits = {"2026-03-05": 2.0} # ex-date: new shares per old share (1-for-10 reverse = 0.1)
dividends = {"2026-03-10": 1.04} # ex-date: cash per share
def adjust(bars, splits, dividends, include_dividends=True):
price_factor = pd.Series(1.0, index=bars.index)
volume_factor = pd.Series(1.0, index=bars.index)
for ex_date, ratio in splits.items():
before = bars.index < pd.Timestamp(ex_date)
price_factor[before] /= ratio
volume_factor[before] *= ratio
if include_dividends:
for ex_date, cash in dividends.items():
before = bars.index < pd.Timestamp(ex_date)
if not before.any():
continue # ex-date before the first bar: nothing earlier to adjust
if before.all():
raise ValueError(f"no bar on or after {ex_date}: fetch bars through the latest day")
prior_close = bars.loc[before, "close"].iloc[-1]
price_factor[before] *= 1 - cash / prior_close
return pd.DataFrame({
"close": bars["close"] * price_factor,
"volume": bars["volume"] * volume_factor,
"price_factor": price_factor,
})
print(adjust(bars, splits, dividends).round(4))
The output's close column is the "split and dividend adjusted" column of the table, unrounded (March 5 is 101.376), and include_dividends=False gives the split-adjusted one. The prior close is taken from the raw series, so the dividend and the price it's divided by are in the same per-share units even when a split comes later.
Don't expect this to match the API's all series to the cent. Rounding is one reason, and the exact dividend method our data provider uses isn't something our documentation publishes. Pick one source of adjusted prices per dataset and stick with it.
Doing it yourself also sidesteps a rounding trap. Adjusted prices published to 2 decimals lose precision on heavily split stocks: a $2.37 close with a cumulative factor of 1/100 is $0.0237, which rounds to $0.02, about 16% low. For long histories of stocks like that, adjust raw prices yourself and keep full precision until you display.
Mistakes to avoid
- Computing returns across a split from raw closes. The worked example's raw series shows a 49.80% loss that never happened.
- Mixing adjustments in one dataset. A
splitclose joined to anallclose is wrong by every dividend in between. Store theadjustmentwith the bars, and refuse to join series whose values differ. - Caching adjusted history forever. The next dividend rescales all of it. Store raw bars and actions, or re-fetch after each new action.
- Using adjusted prices as traded prices. No one ever bought XYZ at 99.00 on March 2. Fills, limit levels and session VWAPs belong to
rawbars. - Adding dividends to a series that already includes them. An
allseries plus the dividend cash counts every dividend twice. - Adjusting volume for dividends. Only splits change share counts.
- Expecting two providers to agree exactly. Base dates, dividend methods, whether spin-offs are included and rounding all differ. Compare returns, not price levels, and check what each source calls "adjusted".
The adjusted close price is a small idea with a lot of bookkeeping behind it: a factor per action, multiplied back from today, recalculated every time something new happens. Choose the adjustment that fits the job, record which one you used, and your charts and backtests will be comparing like with like.
Get a free API key to start with the quickstart. Historical bars with all four adjustments, and corporate actions, are on the Supreme plan ($20 a month); the plans are compared in the pricing section.