The made-up stock used on this page

Every number below comes from an illustrative dataset. The stock is invented. It pays a $1.00 dividend per pre-split share with an ex-date of 7 January 2026, then splits 2-for-1 at the open on 9 January.

DayRaw close
2026-01-05100.00
2026-01-06101.00
2026-01-07 (ex-dividend)99.00
2026-01-0898.50
2026-01-09 (split)50.00
2026-01-1250.50

This script builds an adjusted series backwards from the newest day. When it steps back past a split, it divides the factor by the ratio. When it steps back past an ex-dividend date, it multiplies the factor by 1 minus the dividend divided by the close on the day before the ex-date.

# Illustrative data: a made-up stock, not a real ticker.
days  = ["2026-01-05", "2026-01-06", "2026-01-07", "2026-01-08", "2026-01-09", "2026-01-12"]
close = [100.00, 101.00, 99.00, 98.50, 50.00, 50.50]   # raw closes
splits = {"2026-01-09": 2.0}        # 2-for-1, effective at the open on this day
dividends = {"2026-01-07": 1.00}    # $1.00 per pre-split share, ex-date

def adjust(days, close, splits, dividends, use_dividends=True):
    out = [None] * len(close)
    factor = 1.0
    for i in range(len(close) - 1, -1, -1):
        out[i] = round(close[i] * factor, 4)
        if i == 0:
            break
        if days[i] in splits:
            factor /= splits[days[i]]
        if use_dividends and days[i] in dividends:
            factor *= 1 - dividends[days[i]] / close[i - 1]
    return out

print("splits only     ", adjust(days, close, splits, dividends, use_dividends=False))
print("splits+dividends", adjust(days, close, splits, dividends))

It prints:

splits only      [50.0, 50.5, 49.5, 49.25, 50.0, 50.5]
splits+dividends [49.505, 50.0, 49.5, 49.25, 50.0, 50.5]

Cause 1: the providers adjust for different events

The two lines above differ on 5 and 6 January, the days before the ex-date. Both are correct for what they claim to adjust.

Providers document different choices. Yahoo's help page says its adjusted close covers splits and dividend distributions and follows CRSP standards. Massive's aggregates documentation describes its adjusted parameter as adjusting for splits. Compare a split-and-dividend series with a split-only series and every day before every dividend will disagree, by more the further back you go.

Cause 2: the series were built on different dates

Adjusted prices depend on every event after the day in question. Suppose the invented stock pays another dividend of $0.50, with the close before its ex-date at $50.00. The factor for every earlier day picks up another 1 minus 0.50 divided by 50.00, which is 0.99.

Series builtAdjusted close for 2026-01-06
Before the second dividend50.00
After the second dividend49.50

Two providers with identical methods give these two numbers if one built its series before the second ex-date and the other after it. Before you call a gap a bug, find out when each series was built, and rebuild yours up to the same date.

Cause 3: subtracting dividends instead of scaling

A common shortcut subtracts later dividends from earlier prices. Scaling and subtracting give close results for one small dividend and drift apart over many. Take a price of $50.00 with 20 later dividends of $1.00, each paid when the stock was at $50.00 (illustrative):

MethodAdjusted price
Multiply by 0.98, twenty times33.38
Subtract $20.0030.00

The subtracted price sits about 10% below the scaled one, and long-run returns built on it come out too high.

Cause 4: using the ex-date's own close

Yahoo's help page works its dividend example with the close on the day before the ex-date, the last close that still included the dividend. If you use the ex-date close instead (99.00 in the invented data), the factor changes from 1 minus 1/101 to 1 minus 1/99:

Close used in the factorAdjusted close for 2026-01-05
Day before the ex-date (101.00)49.505
Ex-date (99.00)49.4949

The gap is about a cent. It still fails any exact comparison against a provider's value.

Cause 5: mixing share bases

The dividend and the close in the factor must use the same share count. The invented dividend is $1.00 per pre-split share, which is $0.50 per post-split share. Either pair gives the same ratio, as long as you keep them matched.

InputsDividend divided by prior closeFactor
Pre-split: 1.00 / 101.000.00990.9901
Post-split: 0.50 / 50.500.00990.9901
Mixed: 0.50 / 101.000.00500.9950

The mixed pair halves the dividend's effect. The same trap applies to splits: if your "close" column is already split-adjusted and you divide by the ratio again, every price before the split comes out too small.

Checklist when two series disagree

  1. Read each provider's definition of "adjusted": splits only, or splits and dividends.
  2. Find the date each series was built, and rebuild yours to the same date.
  3. Test one known split date to see whether the "close" column is raw or already split-adjusted.
  4. Check that each dividend and the close it is divided by share a basis.
  5. Scale by 1 minus dividend over the prior close, and use the close of the day before the ex-date.
  6. If a gap remains, read how each provider documents special dividends and spin-offs.
Keep raw closes, splits and dividends with ex-dates as your stored record. With those three you can reproduce any provider's adjusted series, for any build date, and find the day where two series part ways.