Dividend yield calculator
A dividend of 2.4 a year on a share priced at 80 is a 3% dividend yield; if the price halves and the payout stays, the yield doubles to 6%. Enter the annual dividend and the share price to compare stocks. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Annual dividend
- 2.4
- Share price
- 80
- Dividend yield percent
- 3
- Dividend yield decimal
- 0.03
- Precision
- 4
- Inverse yield
- 33.3333
Dividend yield is the cash return a stock pays relative to what you pay for one share: the annual dividend per share divided by the current share price, expressed as a percent. This dividend yield calculator applies that textbook identity with no market-data lookup and no guesswork about trailing versus forward policy — you supply the annual dividend figure and the price you actually care about. A two-dollar-forty dividend on an eighty-dollar share is a three percent yield; the same dividend on a forty-dollar share is six percent because the price in the denominator moved. Zero-dividend names return a zero yield instead of an error, so growth stocks sit next to income names in the same contract.
What dividend yield tells you
Dividend yield is the cash a share pays you each year as a proportion of what one share costs today. Divide the annual dividend per share by the share price and multiply by 100. A dividend of 2.4 on a share priced at 80 is a 3% yield; if the price halves while the dividend stays the same, the yield doubles to 6%. That is why the yield moves every time the price does, even when the company has not changed its payout. A stock that pays nothing shows a yield of zero, so growth and income stocks can sit side by side in one comparison.
What the figure leaves out, and how to use it
The yield counts cash dividends only: price gains, share buybacks, one-off special payouts and taxes are not part of it. Choose the dividend figure on purpose, either what was paid over the past year or what is expected for the next one, and keep the same choice when you compare stocks. The inverse yield turns the ratio around: the price divided by the dividend, or how many years that payout would take to repay the share price if it never changed, 33.3333 years in the 3% example. Results show four decimals unless you choose otherwise.
What you can do with it
Screen income stocks after a price move
Hold the annual dividend fixed and recompute yield when the share price changes, so a dip or rally updates the cash yield without a market-data vendor.
Homework and CFA-style drills
Generate reproducible dividend-yield answers for worksheets: annual DPS over price times one hundred, including the zero-dividend case.
FAQ
Should I use trailing or forward annual dividend?
Either, as long as you are consistent. This calculator does not fetch quotes or policies; it yields whatever annual cash-per-share number you supply against the price you supply.
Why must share price be greater than zero?
A zero annual dividend is allowed and produces a 0% yield.
Does this include capital gains or taxes?
No. It is the cash dividend yield only. Total return and tax-equivalent bond yield are different metrics with different tools.
What does the dividend yield calculator cost?
It is free in your browser on this page.
What yield does a stock that pays no dividend have?
Zero, and the calculator shows that zero rather than an error. That lets you list growth stocks that pay nothing next to income stocks and compare them on the same terms.
Related tools
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/finance/dividend-yield \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"annual_dividend":2.4,"share_price":80}'const res = await fetch("https://api.kit.forhosting.com/finance/dividend-yield", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"annual_dividend": 2.4,
"share_price": 80
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/finance/dividend-yield",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"annual_dividend": 2.4,
"share_price": 80
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/finance/dividend-yield", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"annual_dividend":2.4,"share_price":80}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"annual_dividend":2.4,"share_price":80}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/finance/dividend-yield", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"annual_dividend": 2.4,
"share_price": 80
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "finance.dividend_yield",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
The engine is pure deterministic arithmetic, so homework keys, screening spreadsheets, and API clients always agree on the same inputs.
What dividend yield measures and how it is computed
Dividend yield answers a simple income question: given the cash a company declares per share over a year, what percent of the current share price does that cash represent. Worked example: an annual dividend of two dollars and forty cents on an eighty-dollar share is three percent, because two point four divided by eighty equals zero point zero three. Another example: one dollar and eighty-six cents of annual dividend on a sixty-two-dollar-forty share is about two point nine eight percent. Price appreciation, buybacks, and special one-off distributions are outside the cash-yield identity. Taxable equivalent yield for municipal bonds is a different search and a different tool; this calculator only divides stock dividend per share by share price. The standard identity used here is dividend_yield_percent equals annual_dividend divided by share_price, times one hundred. The same ratio without the times-one-hundred step is dividend_yield_decimal, so a three percent yield is also zero point zero three of the purchase price each year. When the annual dividend is strictly positive the response also includes inverse_yield, which is share_price divided by annual_dividend — the number of years of that dividend it would take to recoup the share price if the payout never changed, the reciprocal of the decimal yield. A twenty-dollar dividend on a one-hundred-dollar share is a twenty percent yield and an inverse yield of five years; a zero dividend is a zero yield and inverse_yield is omitted rather than returned as null, because optional output keys are dropped when they do not apply. This page does not decide whether your dividend figure is trailing twelve months, last declared annualized, or a forward estimate: that choice belongs to the caller, and two different annual numbers on the same price will correctly produce two different yields. It is also not total return.
Inputs, validation, rounding, and what the response contains
Share price must be strictly greater than zero: a zero or negative price is undefined for yield and is rejected the same way so automation never stores Infinity. The decimal yield is rounded to min(precision plus four, fifteen) so a small yield such as ninety-four basis points still keeps extra digits after the point. Successful responses echo the two inputs, the percent yield, the decimal yield, the formula string, and the precision used. Both annual_dividend and share_price are required finite numbers in the same currency units. Annual dividend may be zero to model a non-paying stock, which produces a zero percent yield; a negative dividend returns a typed invalid_input error that names the field, because a cash yield cannot be computed from a negative payout in this contract. Optional aliases dividend, dps, annual_dps, and dividend_per_share map to annual_dividend; price, current_price, and stock_price map to share_price so spreadsheets and form clients can reuse familiar column names. Failed validation is never billed; only successful API tasks consume prepaid balance at the published base rate of $0.002. Do not send live ticker symbols: this engine does not look up quotes, ex-dividend dates, or payout calendars, and a non-numeric ticker fails as invalid_input.
Where a dividend yield calculator earns its keep
Income investors and dividend-growth screeners use a dividend yield calculator to compare names after a price move without waiting for a terminal to refresh a trailing-yield column: if the annual dividend is unchanged and the share price fell, the yield rose, and the inverse-yield years-to-recoup figure shortened. If you need a tax-adjusted comparison between a municipal bond and a taxable coupon, use the separate taxable-equivalent-yield tool; this page answers only annual dividend per share over current share price, with stable, reproducible output you can trust in tests. Advisors and educators walk clients through why a high headline yield can be a falling-price artifact rather than a raise, by holding annual_dividend fixed and changing only share_price. Spreadsheet users pin a two-point-four-on-eighty result of three percent in continuous integration when they refactor display code, ensuring rounding and aliases keep working. Pair the free interactive page for a single-name check with the priced endpoint for batch screens.
Integration use cases
Watchlist and product automation
Batch the API across many names with the same JSON contract as the free widget to seed yield columns and CI fixtures.
Technical questions
What is the dividend yield formula?
dividend_yield_percent = (annual_dividend / share_price) × 100. The tool also returns dividend_yield_decimal (the same ratio without × 100) and, when the dividend is positive, inverse_yield = share_price / annual_dividend.