BLOG

Behind the numbers.

Code examples, market analysis, and data quality deep-dives.

Does Skipping the Most Recent Month Improve Momentum? S&P 500 Decile Sorts in Python
Does Cointegration Survive Out of Sample? Pairs Trading Validation in Python
Which Dividends Are Not Covered by Cash? Free-Cash-Flow Coverage Screening in Python
GICS vs SIC vs NAICS: Which Industry Classification to Use
How Many Stocks Does It Take to Diversify? Random Portfolio Simulation in Python
How Many Days of Data Does a Volatility Estimate Need? Range-Based Estimators in Python
How Much of S&P 500 Cash Flow Is Stock Compensation? Cross-Sectional Analysis in Python
What Is a 13F Filing? Institutional Holdings Explained
Does Revenue Growth Explain Profit Growth? Cross-Sectional Decomposition in Python
How Much of the Nasdaq 100 Is Already in the S&P 500? Index Overlap Analysis in Python
How Often Does a 99% Value-at-Risk Limit Actually Break? VaR Backtesting in Python
Real-Time vs End-of-Day Market Data: Which Do You Need?
How Concentrated Are S&P 500 Earnings? Point-in-Time Index Analysis in Python
Does Volatility Scale With the Square Root of Time? Variance Ratio Test in Python
Does Goodwill Distort the Price-to-Book Screen? Goodwill-Adjusted Valuation in Python
How Are Shares Outstanding Reported (and Why They Disagree)
Do Low-Volatility Stocks Deliver Better Risk-Adjusted Returns? S&P 500 Quintile Sorts in Python
Does Trend Following Beat Buy and Hold? Time-Series Momentum in Python
Has the Stock-Bond Correlation Flipped? 60/40 Portfolio Risk in Python
What API to Use for a Stock Screener
Which Assets Hedge Inflation Shocks? Macro Factor Betas in Python
Does Covariance Shrinkage Beat the Sample Covariance? Minimum-Variance Portfolios in Python
Do Faster Inventory Turns Mean Thinner Margins? Gross Margin Return on Inventory in Python
SEC EDGAR API vs Fundamentals API: Which to Use
Does Fast Earnings Growth Persist? Rank Correlation Analysis in Python
Split Adjustment Explained: Adjusted Close vs Close
Which Trading Day of the Month Pays Best? Turn-of-the-Month Analysis in Python
Can You Use Yahoo Finance Data Commercially?
How Many Independent Bets Does a Nine-Sector Portfolio Give You? Eigenvalue Analysis in Python
Which Volatility Forecast Wins One Month Ahead? HAR vs EWMA in Python
How Concentrated Are Institutional Equity Portfolios? Form 13F Concentration Analysis in Python
Do Stocks Earn Their Returns Overnight or Intraday? Return Decomposition in Python
When Do Corporate Insiders Actually Trade? Form 4 Timing Analysis in Python
Data Requirements for Backtesting a Trading Strategy
What Is Survivorship Bias in Backtesting?
Do High Dividend Yields Come From Bigger Payouts or Falling Prices? Yield Decomposition in Python
Do Stocks Fall Harder Than They Rise? Downside Beta vs Upside Beta in Python
Does Volatility Targeting Improve Sharpe Ratios? Seven-Asset Backtest in Python
Free Stock Market Data APIs: What You Actually Get
How to Give an LLM Financial Data With an MCP Server
Does Post-Earnings Announcement Drift Survive Real Filing Dates? PEAD Event Study in Python
Do Insider Buying Clusters Predict Returns? Signal Testing in Python
Does the S&P 500 Index Effect Still Exist? Event Study in Python
Are Companies Leaving the S&P 500 Faster Than They Used To? Index Survival Analysis in Python
Does Gross Profitability Predict Stock Returns? Quintile Factor Test in Python
What Growth Rate Is the Market Pricing In? Reverse DCF in Python
Does a Strong Balance Sheet Cushion Drawdowns? Leverage and Downside Risk in Python
Does Ticker Recycling Corrupt a Mean-Reversion Backtest? Entity-Resolved Z-Scores in Python
How Much of a Growth Screen's Backtested Edge Is Survivorship Bias? Point-in-Time Index Testing in Python
Why Do Leveraged ETFs Decay? Measuring Volatility Drag in Python
Are Consumer Staples Margins Shrinking Under Inflation? Gross Margin Trend Analysis in Python
Do Weak Jobs Reports Predict Market Drawdowns? NFP Surprise Event Study in Python
Is the Rotation From Tech to Industrials Backed by Earnings? Relative EPS Growth Analysis in Python
Is the Semiconductor Rally Broadening Beyond NVIDIA? Return Dispersion Analysis in Python
Which Stocks Benefit Most When Oil Prices Fall? Oil Beta Screening in Python
Do Bond Returns Predict Stock Returns? Granger Causality Test in Python
Which Stocks Actually Drive Portfolio Returns? Shapley Value Attribution in Python
Does "Sell in May" Still Work? Calendar Anomaly Backtest in Python
How to Build Complete Price History Through Ticker Changes? Entity Resolution in Python
Are KO and PEP Cointegrated? Pairs Trading Signal Construction in Python
Which Commodities Have the Strongest Momentum? Rotation Backtest in Python
Which Commodity ETFs Have the Worst Tail Risk? Expected Shortfall in Python
Are Gold Miners Leveraged Gold Bets? Rolling Beta Analysis in Python
Does the Base-Metals-to-Gold Ratio Lead Cyclical Stocks? Signal Test in Python
Can Risk Parity Tame Commodity Volatility? Portfolio Optimization in Python
Are Power Stocks Becoming an AI Infrastructure Trade? Momentum Screening in Python
Which AI Chip Stocks Have Margin Momentum? Profitability Trend Analysis in Python
Which AI Stocks Are Cheapest Relative to Growth? Growth-Adjusted Valuation in Python
Does AI Stock Leadership Persist? Momentum Backtest in Python
Which AI Stocks Have the Cleanest Balance Sheets? Net Cash Screening in Python
Can Risk Parity Reduce Mega-Cap Drawdowns? Portfolio Optimization in Python
Which Growth Stocks Are Self-Funding? Cash-Flow Quality Screening in Python
Which Sectors Struggle When the Dollar Rallies? Sector Rotation Analysis in Python
Do Cheap Stocks Hold Up When Bonds Sell Off? Valuation Rotation in Python
Does the Nasdaq 100 Have Better Growth Quality Than the Dow? Index Constituent Analysis in Python
Do Healthcare Cash-Flow Margins Predict Returns? Signal Evaluation in Python
Which Dividend Stocks Survive a Cash-Flow Stress Test? Dividend Screening in Python
Does Heavy Insider Selling Predict Weak Returns? Insider Flow Test in Python
Can Quality Screens Reduce Small-Cap Balance-Sheet Risk? Russell 2000 Test in Python
Which Retailers Have Positive Operating Leverage? Margin Screening in Python
Is MSTR a Leveraged Bitcoin Proxy? Rolling Beta Analysis in Python
Is Micron's Memory Cycle Recovering? Inventory and Margin Forecasting in Python
Which Sectors Work When Bonds Rally? Rate-Sensitive Rotation in Python
Do One-Month Price Extremes Reverse? Signal Evaluation in Python
Do Low-Volatility S&P 500 Stocks Reduce Drawdowns? Factor Test in Python
Is AI Capex Paying Back Fast Enough? Revenue Hurdle Forecasting in Python
Could Shorter AI Asset Lives Hit Earnings? Depreciation Stress Test in Python
How Much AI Capex Risk Can a Portfolio Remove? Constrained Optimization in Python
Is the AI Capex Trade Crowded? Rolling Volatility and Sector Rotation in Python
Did the AI Boom Come From Existing S&P 500 Members? Point-in-Time Momentum Test in Python
Is AI Revenue Circular? Customer-Vendor Capex Loop Analysis in Python
Is the AI Trade Connected to Private Credit? Rolling Correlation Network in Python
Is Apollo More Balance-Sheet Sensitive Than Peers? Leverage Screen in Python
Are AI Earnings Supported by Cash Flow? Accrual and Capex Screen in Python
Can Defensive Stocks Hedge AI Drawdowns? Basket Regime Test in Python
How Fast Does the Market Price In Fed Decisions? FOMC Event Study in Python
How Much Are Options Sellers Overpaid? The Variance Risk Premium in Python
Which Companies Have the Worst Earnings Quality? Sloan Accrual Screen with Geographic Revenue Data in Python
Does the Oil-to-Gold Ratio Signal Recessions? XLE/GLD Backtest in Python
Is AI Spending Crowding Out Free Cash Flow? Capex Sustainability Across the Mag 7 in Python
Does a Long Energy / Short Bonds Portfolio Capture Inflation Surprises? Factor Construction in Python
Can a Hidden Markov Model Detect Oil Market Regimes? HMM Analysis in Python
Do Grain Prices Predict Food Inflation? Granger Causality Test in Python
Does the Corporate Credit Spread Predict Stock Market Crashes? BAA-AAA Spread Analysis in Python
Do Oil Stocks Hedge Inflation? Rolling Beta Analysis in Python
Which Stocks Are Most Rate-Sensitive? Equity Duration via Bond Beta in Python
Which Companies Have the Highest Accrual Ratios? Earnings Quality Screening in Python
Is Alpha Persistent or Decaying? Rolling Sharpe Ratio Analysis in Python
Are Markets Trending or Mean-Reverting? Hurst Exponent Analysis in Python
Is Consumer Discretionary vs Staples a Leading Indicator? XLY/XLP Ratio Analysis in Python
Does Heavy Capex Predict Future Stock Returns? Capital Expenditure Analysis in Python
How to Estimate Cost of Equity Using CAPM in Python
Is Volatility Predictable? Testing for Volatility Clustering in Python
Which Industrials Are Overleveraged? Net Debt to EBITDA Screening in Python
GM Before and After Bankruptcy: Why Entity Resolution Matters for Financial Data
What Is Adjusted Beta? Merrill Lynch Beta Shrinkage in Python
How Good Is a Stock Pick? Information Ratio and Tracking Error in Python
Do Stock Returns Follow a Normal Distribution? Testing for Fat Tails in Python
Which Large Caps Have the Highest Free Cash Flow Yield? FCF Screening in Python
Which Sectors Won Over 5 Years? Sector Rotation Analysis in Python
How to Forecast Stock Volatility with GARCH Models in Python
Are Stock Prices Mean-Reverting? Augmented Dickey-Fuller Test in Python
How to Calculate CAPM Alpha and Beta with Regression in Python
How to Compare Sector Sharpe Ratios and Sortino Ratios in Python
DELL: Why Stitching Historical Price Data Together Is Wrong
How to Analyze Drawdown and Recovery for Bank Stocks in Python
How to Screen SaaS Stocks by Revenue Growth and Cash Flow in Python
How to Screen REITs by Dividend Yield and Valuation in Python
How Correlated Are the Magnificent 7? Intra-Group Correlation in Python
AAPL vs XOM: Do Individual Stocks Have Seasonal Patterns?
How to Rank Large-Cap Stocks by Momentum in Python
How to Build a Multi-Endpoint Financial Dashboard in Python
How to Compare Volatility Across Energy Stocks in Python
How to Screen Healthcare Stocks by Valuation in Python
How to Build a Sector Correlation Matrix for Portfolio Diversification in Python
How to Find Oversold and Overbought Stocks Using Z-Scores in Python
How to Measure Earnings Quality: Cash Flow vs Net Income in Python
How to Build a Multi-Factor Stock Screen in Python (Value + Momentum + Quality)
How to Build a Simple DCF Model for Any Stock in Python
How to Screen Tech Stocks by Revenue Growth in Python
How to Screen Stocks by Balance Sheet Health in Python
Is "Sell in May" Real? SPY Monthly Seasonality Over 10 Years
How to Compare Sector Performance YTD Using Python
How to Screen Dividend Stocks by Yield and Quality in Python
How to Calculate Max Drawdown and Recovery Time for Any Stock in Python
How to Compare Profitability Across Mega-Cap Tech Stocks in Python
Why Ticker Symbols Are Unreliable: The Recycling Problem Every Quant Should Know
How to Calculate and Compare Stock Volatility in Python
How to Screen Blue-Chip Stocks by P/E Ratio in Python
How to Track Companies Through Ticker Changes, Bankruptcies, and Renames in Python
S&P 500 Turnover: How Much the Index Has Changed Since 2010
How to Calculate Stock Beta and Correlation in Python
← All articles

Which Dividends Are Not Covered by Cash? Free-Cash-Flow Coverage Screening in Python

What’s the question?

The conventional test of dividend safety is the payout ratio: dividends divided by net income. Anything under 60% reads as comfortable, and a screen built on that threshold will pass most of the large-cap dividend universe.

Net income is an accrual figure. It charges depreciation on assets bought years ago, and it says nothing about what a company spends on new assets this year. Dividends are settled in cash. Free-cash-flow coverage measures the same obligation against the cash actually available: operating cash flow minus capital expenditure, divided by dividends paid. A coverage ratio above 1.0 means the company funded its distribution out of what the business produced after reinvestment. Below 1.0 means the difference came from borrowing, share issuance, or the cash balance.

The practical question is which dividend payers pass the earnings test and fail the cash test, and how far the two rankings diverge across a large universe.

The approach

The universe is the current S&P 500. Each company contributes its most recent annual filing, with fiscal periods ending between April 2025 and June 2026. Built from SEC EDGAR public filings and market data.

  1. Pull annual net income, operating cash flow, capital expenditure, and the common stock dividend
  2. Keep companies that paid a common dividend and reported positive net income
  3. Exclude Financials and Real Estate, where the capital-expenditure line is not comparable: banks and insurers have no meaningful capex against operating cash flow, and REIT capital spending mixes maintenance with portfolio growth
  4. Compute the payout ratio as dividends over net income, and coverage as free cash flow over dividends
  5. Measure the Spearman rank correlation between the two, then isolate the companies where they disagree

That leaves 253 dividend payers.

Code

import xfinlink as xfl
from scipy.stats import spearmanr

xfl.set_api_key("YOUR_API_KEY")  # free at https://xfinlink.com/signup

fields = ["period_end", "net_income", "operating_cash_flow",
          "capital_expenditures", "dividends_paid_common"]

tickers = xfl.index("sp500")["ticker"].dropna().unique().tolist()
raw = xfl.fundamentals(tickers, period_type="annual", start="2024-06-01",
                       fields=fields, max_rows=10000)

latest = raw.sort_values("period_end").groupby("ticker").tail(1)
df = latest[
    (latest["dividends_paid_common"] > 0)
    & (latest["net_income"] > 0)
    & latest["operating_cash_flow"].notna()
    & latest["capital_expenditures"].notna()
    & ~latest["gics_sector"].isin(["Financials", "Real Estate"])
].copy()

df["fcf"] = df["operating_cash_flow"] - df["capital_expenditures"]
df["payout"] = df["dividends_paid_common"] / df["net_income"]
df["coverage"] = df["fcf"] / df["dividends_paid_common"]

rho, pval = spearmanr(df["payout"], df["coverage"])
blind_spot = df[(df["payout"] < 0.60) & (df["coverage"] < 1.0)]

print(f"Spearman: {rho:.3f}   uncovered: {(df['coverage'] < 1).sum()} of {len(df)}")
print(blind_spot.sort_values("coverage")[["ticker", "gics_sector", "payout", "coverage"]])

Full script with formatting and visualisation: dividend-free-cash-flow-coverage-python.py

Output

Scatter plot of dividend payout ratio against free-cash-flow coverage for 253 S&P 500 dividend payers, with utilities marked in blue
=== Dividend Coverage: Cash vs Earnings ===
Universe: 253 S&P 500 dividend payers (latest annual filing, ex-Financials, ex-Real Estate)
Fiscal periods end 2025-04-25 to 2026-06-30
Spearman rank correlation, payout vs coverage: -0.756 (p=4.0e-48)
Dividend not covered by free cash flow: 43 of 253 (17.0%)
Median coverage: 2.57x   Median payout: 39.8%

--- Payout ratio under 60%, free cash flow below the dividend (18 names) ---
Ticker Sector                     NetInc      OCF    Capex       FCF      Div   Payout    Cover
PCG    Utilities                   2,703    8,716   11,787    -3,071      277   10.2%   -11.09x
CNP    Utilities                   1,052    2,486    4,870    -2,384      574   54.6%    -4.15x
ORCL   Information Technology     17,087   31,977   55,663   -23,686    5,725   33.5%    -4.14x
AES    Utilities                     910    4,306    5,929    -1,623      501   55.1%    -3.24x
ATO    Utilities                   1,199    2,049    3,561    -1,512      554   46.2%    -2.73x
MOS    Materials                     541      825    1,359      -535      282   52.2%    -1.89x
AWK    Utilities                   1,111    2,059    3,126    -1,067      648   58.3%    -1.65x
EXC    Utilities                   2,768    6,254    8,529    -2,275    1,617   58.4%    -1.41x
AEE    Utilities                   1,461    3,353    4,128      -775      768   52.6%    -1.01x
NI     Utilities                     930    2,362    2,782      -420      533   57.3%    -0.79x
AEP    Utilities                   3,696    6,944    8,453    -1,509    2,008   54.3%    -0.75x
EIX    Utilities                   4,459    5,800    6,515      -715    1,274   28.6%    -0.56x
NUE    Materials                   1,744    3,234    3,422      -188      511   29.3%    -0.37x
PEG    Utilities                   2,111    3,298    3,272        26    1,258   59.6%     0.02x
LEN    Consumer Discretionary      2,078      217      189        28      521   25.1%     0.05x
TRGP   Energy                      1,923    3,917    3,333       584      815   42.4%     0.72x
HUM    Health Care                 1,188      921      546       375      426   35.9%     0.88x
MMM    Industrials                 3,250    2,306      910     1,396    1,562   48.1%     0.89x

Sector mix of that group:
  Utilities                11
  Materials                 2
  Information Technology    1
  Consumer Discretionary    1
  Energy                    1
  Health Care               1
  Industrials               1

--- Payout ratio above 100%, cash covers the dividend more than 1.5x (5 names) ---
Ticker Sector                     NetInc       FCF      Div   Payout    Cover
TPR    Consumer Discretionary        183     1,094      299  163.4%     3.65x
CVS    Health Care                 1,768     7,807    3,409  192.8%     2.29x
TSN    Consumer Staples              474     1,177      697  147.0%     1.69x
HSY    Consumer Staples              883     1,823    1,085  122.9%     1.68x
ABBV   Health Care                 4,226    17,816   11,819  279.7%     1.51x

What this tells us

The rank correlation of −0.756 means the two measures mostly agree: companies with a high payout ratio tend to have low cash coverage. The agreement is not complete. Of 253 payers, 43 did not cover the dividend from free cash flow, and 18 of those reported a payout ratio below 60%. A screen with a 60% cutoff would have passed every one of them.

Eleven of the 18 are utilities, which points at structure rather than distress. Regulated utilities spend far more on plant than they charge to depreciation, because the rate base is deliberately growing. American Electric Power earned 3,696 and distributed 2,008, a payout of 54.3%; operating cash flow of 6,944 against capital expenditure of 8,453 left free cash flow of −1,509. The dividend was funded from debt and equity issuance, and the regulator permits a return on the enlarged asset base. That is a working model, but its safety depends on capital-market access and rate-case outcomes, neither of which the payout ratio observes.

Oracle is the largest shortfall in dollar terms. A payout ratio of 33.5% looks untroubled until capital expenditure of 55,663 is set against operating cash flow of 31,977, which produces free cash flow of −23,686 and coverage near −4.1x.

3M shows a different mechanism. Capital expenditure of 910 is modest, and the gap comes from operating cash flow of 2,306 sitting well below net income of 3,250. Payout reads 48.1%; coverage is 0.89x.

The reverse error also appears. Five companies posted a payout ratio above 100% while covering the dividend more than 1.5 times in cash. CVS Health earned 1,768, distributed 3,409, and still generated 7,807 of free cash flow, for coverage of 2.29x. Non-cash charges such as impairments and intangible amortisation depress reported earnings without touching the cash that pays the dividend.

So what?

Run both ratios and treat the gap between them as the signal. Where cash coverage sits far below the earnings payout, the dividend depends on external funding, and the relevant risk is a credit and capital-markets risk rather than an operating one. Where cash coverage sits far above the earnings payout, a payout ratio above 100% is an accounting artefact and not a warning.

For capital-intensive sectors, the earnings payout ratio has almost no discriminating power: every utility in this sample passes it. Coverage separates them. Setting a minimum coverage ratio alongside a maximum payout ratio, and reviewing the disagreements by hand, catches both failure modes that a single-ratio screen produces.

Built with xfinlink — free financial data API for Python. pip install -U xfinlink

Built with xfinlink — free financial data API for Python. pip install -U xfinlink
← All articles