Skip to main content
Skip to content
Crypto Trading

yfinance Adjusted Close in 2027: The Dividend Counted Twice

Understand yfinance auto_adjust and dividend accounting. DN’s 2027 worksheet shows how adding a distribution twice creates a false gain in a backtest.

One luminous gold token casts two distinct impressions across a folded magenta ledger surface.
Reading options: audio, text size & sections

What Matters: A return calculation must use one coherent treatment of corporate actions. If a price series already incorporates a dividend, adding that dividend again can manufacture a gain. DN’s fictional example turns a zero economic return into an erroneous 2% return, showing why the meaning of yfinance’s Close column matters before a backtest begins.

Evidence: Checked 28 November 2026 for this 2027 edition. DN inspected yfinance’s adjustment and repair documentation and executed original dividend arithmetic. The example prices and adjusted values are authored teaching inputs. They are not downloaded observations or a reconstruction of Yahoo’s adjustment algorithm.

What does yfinance adjusted close mean?

The current yfinance adjustment documentation says that auto_adjust=True is the default for its history and download methods. In that mode, OHLC prices are adjusted for splits and dividends, and the returned Close is already adjusted. A separate Adj Close column is absent.

With auto_adjust=False, the documented output contains Yahoo’s split-adjusted OHLC and a separate Adj Close that also accounts for dividends. Calling the former completely raw would therefore be misleading. Disabling one library adjustment setting does not undo every transformation already present in the provider’s data.

The pinned adjustment function makes the naming change inspectable: it rescales the other price columns using the adjusted-to-close ratio and renames the adjusted close to Close. A downstream script selecting that familiar name therefore needs the upstream settings as well as the column label.

Documented column conventions at the review date
SettingPrice columnsQuestion for the return calculation
auto_adjust=TrueAdjusted OHLC; adjusted CloseIs the distribution already represented?
auto_adjust=FalseSplit-adjusted OHLC plus Adj CloseWhich column does the engine actually use?

A column name cannot carry the whole accounting policy

A file labelled “prices” may be suitable for one calculation and unsuitable for another. An adjusted series can help compare price relatives across a corporate action. A trading ledger needs the quantities held, actual transaction prices and cash events under its own accounting rules. Treating the two as interchangeable can count an event twice or omit it altogether.

The appropriate first question is therefore specific: what quantity does this column represent, after which transformations, and how does the next stage of the backtest use it? A setting in a download call is only part of the answer. The engine may choose a different column, add distributions separately or transform the data again.

Documenting that path is especially useful when an AI writes the strategy. A plausible function name or a correctly formatted return chart does not demonstrate that the cash and price conventions agree. The convention has to be visible in the calculation.

The original example: a price drop and a cash distribution

DN’s first fictional case starts with one share valued at 100. Its next price is 98, and the holder receives a cash dividend of two under the example’s explicit entitlement assumption. There are no fees, taxes, financing costs or intraperiod reinvestment.

The share’s price-only return is (98 − 100) ÷ 100 = −2%. The account contains a share worth 98 and cash of two, for a combined value of 100. Its simple cash-inclusive return is therefore (98 + 2 − 100) ÷ 100 = 0%.

One-share ledger in the authored dividend case
ComponentBeforeAfter
Share quantity11
Share value10098
Dividend cash counted in this interval02
Combined value100100

The exact price drop is a choice made to isolate the bookkeeping. It is not a claim that every real ex-dividend price change equals the distribution. Real prices can move for other reasons during the same interval, which makes a separately documented cash event more important.

How the same dividend becomes a false gain

For this particular case, DN authors an adjusted comparison series with values of 98 before and 98 after. Its return is zero. That series is chosen to represent the assumed distribution consistently within this simple example; it is not generated by applying Yahoo’s production adjustment procedure.

Now deliberately make the error: take the adjusted-series return of zero and add the cash dividend divided by the original starting price, two divided by 100. The reported return becomes 2%. The calculation has credited the same economic event once through the adjusted series and again through the cash term.

Executed return comparison
CalculationResultInterpretation
Price-only change−2%Excludes the declared cash dividend
Unadjusted example price plus dividend cash0%Accounts for the event once
Authored adjusted-series return0%Represents this example’s distribution
Adjusted return plus dividend yield again+2%Intentional double-counting error

The overstatement is two percentage points: the erroneous 2% minus the correct zero. It is not a 2% relative increase in a nonzero return. Naming the units avoids introducing another ambiguity while explaining the first one.

Why the control case matters

The second authored case moves the price from 100 to 102 and sets the dividend to zero. Its adjusted comparison values are also 100 and 102. The price-only, cash-inclusive and adjusted returns all equal 2%. Adding the zero cash term again creates no overstatement.

This control is useful because a faulty workflow can look harmless on observations without distributions. Testing only such a period would not expose the duplicated dividend term. An effective check selects an event that exercises the accounting rule, then includes an event-free comparison to show which input drives the difference.

Neither case measures how frequently a real dataset contains errors. Together they test a specific mathematical convention under known inputs. The distinction keeps a clear teaching result from becoming an unsupported allegation about a provider.

Choose the convention before comparing strategies

For a simple adjusted-price return analysis, the declared transformation may already represent distributions in the price relatives. For an explicit holdings-and-cash simulation, distributions may instead appear as cash events credited to eligible holdings. These approaches can answer related questions, but they need matching assumptions before their results can be compared.

Cash held after payment and cash reinvested into more shares do not necessarily follow the same later path. Taxes, currency conversion, payment timing and transaction costs can create further differences. A one-period equality in this example cannot establish that every adjusted-price path matches every real account’s total return.

The practical requirement is consistency across the full interval. State what happens to a distribution, when it becomes available and what the simulation does with it afterwards. If the method uses a reinvestment convention, retain that convention with the output rather than describing all total-return series as identical.

Apply the same scrutiny to the benchmark. Comparing a cash-inclusive strategy return with a price-only reference can attribute an accounting difference to investment skill. A useful comparison states the treatment on both sides, preserves the common observation interval and explains any remaining difference in entitlement or reinvestment. Matching the ticker and dates alone does not establish matching return definitions.

An adjusted historical price is not proof of an available fill

A transformed price series is a research representation. It does not by itself establish that a trader could have submitted an order and obtained every displayed historical value. A backtest’s execution rules still need to identify the relevant instrument, observation time and fill model.

This becomes particularly important when a signal is calculated on one representation and orders are evaluated on another. The interface between them needs a coherent unit conversion. A threshold expressed in adjusted price units cannot be assumed to have the same meaning as a cash order price without examining that mapping.

DN’s backtest-assumptions audit covers the separate question of fill assumptions. Correcting dividend treatment improves the accounting; it does not validate the execution model or establish that the strategy is profitable.

Keep split handling separate from the dividend test

A split concerns the relationship between share quantity and per-share units. A cash dividend introduces a distribution. Both can motivate historical adjustments, but they should not be reduced to one unexplained “adjusted” flag in the research handover.

For a future split-specific test, record the before-and-after quantities and unit definitions, then reconcile the corresponding account values. State how historical prices, volumes and outstanding order instructions are handled by the actual system being reviewed. This article does not claim to have executed that additional test.

The worksheet below deliberately concentrates on the dividend case. Narrowing the experiment makes its conclusion inspectable: the chosen adjusted return already represents the assumed distribution, so adding the same cash yield again creates the disclosed overstatement.

Repair adds another transformation to record

The official price-repair documentation describes attempts to correct several data problems and acknowledges the possibility of false positives in inference-based repairs. It also notes that an adjustment affecting only Adj Close can occur without setting the row’s Repaired? flag to true.

A researcher should therefore retain the request settings, retrieved snapshot and method version, rather than rely on one flag as a complete transformation history. Repair may be useful, but its output remains a result produced by a procedure with assumptions. This article neither measures a repair error rate nor asserts that enabling repair makes all data correct.

A price-convention record another person can use

Suggested fields for a reproducible return calculation
FieldWhat to preserve
Identity and intervalInstrument, currency, timestamps and observation frequency
Price basisThe exact selected column and its adjustment meaning
Distribution policyEmbedded adjustment or explicit cash treatment; any reinvestment rule
Quantity policyUnits held and the treatment of splits or other changes
TransformationsAdjustment, repair and downstream processing settings
Reproduction recordSaved input snapshot, retrieval date, package version and calculation

These fields let a reviewer trace the result from the inputs. A missing policy should remain a question, rather than being silently filled with the reviewer’s preferred default. Where two reports disagree, compare their conventions before attributing the difference to a trading signal.

The data-vintage guide adds another dimension: when information and revisions became available. Transformation meaning and information timing are both necessary, but one cannot substitute for the other.

Use the dividend-reconciliation worksheet

Dividend and price-column reconciliation

Compare one-share cash accounting with a declared distribution-adjusted series, then deliberately add the dividend twice. The initial prices are authored teaching values, not a Yahoo adjustment reconstruction.

Works in your browser with your inputs. No account, data subscription or broker connection is required.

The two declared correct-return conventions reconcile in this one-period example. Adding the dividend again adds the same cash yield a second time.

Price-only return (%)
-2
Explicit cash total return (%)
0
Declared adjusted-series return (%)
0
Adjusted return plus cash again (%)
2
Extra cash increment (percentage points)
2
Adjusted minus explicit-cash return (percentage points)
0
ConventionWhat is countedReturn (%)
Price onlyPrice change only-2
Explicit cashPrice change plus one cash dividend0
Declared adjusted seriesThe stated distribution-adjusted price change0
Intentional double countAdjusted return plus the original-share dividend yield again2

One original share and one event are assumed, with no tax, fees, financing, split, reinvestment or entitlement dispute. Adjusted-price paths can encode conventions different from this cash account.

The extra increment measures what was added to the declared adjusted return. It does not prove that an arbitrary real provider series includes this dividend or that the two user-supplied conventions should match.

The initial result is a worked example. Changing an input changes the stated scenario, not an exchange account or a verified market result.

Begin with the authored 100-to-98 price move and two-unit distribution. Compare the explicit cash calculation with the declared adjusted-series return, then inspect the intentionally duplicated result. The output should help identify which term changes the answer, without claiming to authenticate a real corporate action.

If using a different example, preserve what the adjusted inputs are intended to represent. Arbitrary adjusted endpoints will not necessarily reconcile with a separately supplied dividend. A disagreement can indicate incompatible assumptions; it is not automatically evidence that one data source is wrong.

Methodology and the useful next step

DN executed the two original cases with standard-library arithmetic. The dividend case returns −2% for price-only change, zero for both the declared cash-inclusive and adjusted conventions, and +2% for the intentional double count. The no-dividend control returns +2% across the compared conventions, with zero overstatement.

No Yahoo dataset, yfinance runtime, broker account or real entitlement record was tested. The example excludes taxes, financing, timing differences and reinvestment within the interval. It illustrates a convention error and provides a reproducible check for discussing that error.

For an actual dataset or backtest review, bring the input columns, transformation settings and return formula to the DN Research Desk. A useful scope is one defined calculation with permitted evidence, an inspectable reconciliation and the remaining questions. Data access and redistribution conditions should be handled separately, as explained in our financial-data rights guide.

Download the dated source and scenario record (JSON) · Download the reproducible calculation pack (ZIP).

Frequently asked questions

Why is Adj Close missing from my yfinance output?

The documentation checked on 28 November 2026 says auto_adjust=True returns adjusted OHLC, with Close already adjusted and no separate Adj Close column. With auto_adjust=False, the documented output includes split-adjusted OHLC plus Adj Close. Record the actual version and settings used.

Does auto_adjust=False return completely unadjusted prices?

No. The current documentation says Yahoo’s returned OHLC is already split-adjusted in this mode. The separate Adj Close additionally accounts for dividends. The setting does not undo every upstream transformation.

Should a dividend always be added to an adjusted-price return?

No. First establish what the adjusted series represents. Adding a distribution already included in that representation can count the event twice. An explicit holdings-and-cash simulation needs its own consistent distribution and reinvestment policy.

Does the 2% error show that yfinance supplied bad data?

No. The data and adjusted endpoints are authored. DN deliberately combined two accounting conventions to demonstrate double counting. No Yahoo observation or yfinance runtime was tested.

Does a false Repaired? flag prove that a row was unchanged?

Not in every documented case. The repair guide notes that an Adj Close-only dividend adjustment can leave that flag unset. Retain the original snapshot, settings and method version to understand the transformation history.

Are an adjusted-price series and a cash-dividend ledger always equivalent?

No universal equivalence is established here. Reinvestment, payment timing, taxes, fees and currency treatment can differ. The article demonstrates a specified one-period case and an event-free control.

Continue your research

Primary sources and evidence

Editorial disclosure: This research explains documented capabilities and original worked examples. Inclusion does not imply endorsement, a commercial relationship or verified trading performance. No placement in this article was purchased.

Corrections and updates: Send source-backed corrections to press@decentralised.news. This 2027 edition was checked on 28 November 2026; documentation, permissions and product availability can change.

Get the most talked about stories directly in your inbox

Join the Decentralised News briefing for independent crypto, DeFi and AI analysis. No spam, unsubscribe anytime.