Ask "is this a good dividend yield?" and you've already asked half a question. Yield on its own is a ratio — annual dividend ÷ price — and a ratio can move for two very different reasons: the dividend went up, or the price went down. A crashing price inflates the yield and makes a deteriorating company look like a bargain.
To read a dividend you need a second number: the payout ratio — dividend ÷ earnings. That's the sustainability check. The two together are what I built the dividend yield calculator and payout ratio calculator to show side by side. Both run off the same open-source library, dividend-math.
Two functions, two different questions
import { dividendYield, payoutRatio } from 'dividend-math';
// Yield: income relative to the price you pay









