Example 1
- dividend 2
- price 40
5
What yield at dividend 2 and price 40? 5. A bare number, not 5%.
Type a dividend and a share price. 2 and 40 give 5. 3 and 50 give 6. 4.5 and 50 give 9. The result is a bare number, with no % sign. A ratio, not a recommendation.
Not a broker and not a tax form. The calculator computes (dividend / price) × 100. Price 0 leaves a blank. Growing principal lives on compound interest.
Enter data and click Calculate.
Dividend yield in this calculator is (dividend / price) × 100. 2 / 40 = 5. The result is 5, with no %. 3 / 50 = 6. 4.5 / 50 = 9. The label may say Yield (%). The code still inserts the bare number.
Field a is the dividend per share. Field b is the price. The unit must match: cash and cash, not cash and a percent. The calculator does not check currency. It divides and multiplies by 100.
At price 0 the result is blank, because there is no divide by zero. Dividend 0 at price 40 gives 0, not a blank. This is not a stock rating and not a promise of the next payout.
Compound interest next door multiplies principal by years. Inflation eats face value. Here two fields and one ratio. No withholding tax and no share count.
Type 2 and 40, then Calculate. A comma in 4.5 parses. A formula sketch, not a buy / sell call and not a filing.
2 / 40 gives 5. 3 / 50 gives 6. 4.5 / 50 gives 9. The same dividend at a higher price comes out lower.
result = (dividend / price) × 100; blank when price = 0
Yield = (dividend / price) × 100. 2 and 40 give 5, with no %. Price 0 leaves a blank.
5
What yield at dividend 2 and price 40? 5. A bare number, not 5%.
6
What yield at 3 and 50? 6.
9
What yield at 4.5 and 50? 9.
5. (2 / 40) × 100. The result is 5, not 5%.
6. Again a bare number.
9. 4.5 / 50 × 100.
That is how the script is written: the result as a plain string. The label may say Yield (%).
A blank. There is no divide by zero. Dividend 0 at 40 gives 0.
No. A ratio of two numbers. Not a broker.
No. No withholding and no share count.
Yes in logic. The code still only divides a by b.
Yes. 4.5 and 4,5 at price 50 both give 9.
Yield is dividend over price. This is not a broker quote and not a tax form.
Page updated in 2026.