function calculateDGR() {
// Get input values using 'var'
var initialDivStr = document.getElementById('initialDividend').value;
var currentDivStr = document.getElementById('currentDividend').value;
var yearsStr = document.getElementById('numberOfYears').value;
// Parse inputs
var initialDiv = parseFloat(initialDivStr);
var currentDiv = parseFloat(currentDivStr);
var years = parseFloat(yearsStr);
var resultBox = document.getElementById('dgrResult');
var outputVal = document.getElementById('dgrOutput');
var summaryText = document.getElementById('dgrSummary');
// Validation logic
if (isNaN(initialDiv) || isNaN(currentDiv) || isNaN(years)) {
alert("Please enter valid numbers for all fields.");
return;
}
if (initialDiv <= 0) {
alert("Initial dividend must be greater than zero to calculate growth.");
return;
}
if (years 10) {
summaryText.innerHTML = "This is a high dividend growth rate, often associated with rapidly growing companies.";
} else if (cagrPercentage > 5) {
summaryText.innerHTML = "This is a moderate dividend growth rate, typical of stable blue-chip stocks.";
} else if (cagrPercentage > 0) {
summaryText.innerHTML = "This is a low dividend growth rate, roughly keeping pace with inflation.";
} else {
summaryText.innerHTML = "This indicates a negative growth rate (dividend cut).";
outputVal.style.color = "#e53e3e";
}
}
Understanding the Dividend Growth Rate Formula
Investors focused on income generation and long-term wealth compounding often look beyond the current dividend yield. They analyze the Dividend Growth Rate (DGR). This metric reveals how quickly a company increases its dividend payouts over time, which is a critical indicator of financial health and management's confidence in future earnings.
The Mathematical Formula
While you can calculate a simple average growth, the standard method used in finance is the Compound Annual Growth Rate (CAGR). This smooths out the volatility between years and provides a geometric mean representing the constant rate of return.
DGR = ( Dfinal / Dinitial ) (1 / n) – 1
Where:
Dfinal: The dividend payment at the end of the period (Current Dividend).
Dinitial: The dividend payment at the start of the period.
n: The number of years in the period.
Why Dividend Growth Matters
A high dividend yield might look attractive, but if the payout remains stagnant, inflation will erode your purchasing power over time. A company that consistently raises its dividend (like the "Dividend Aristocrats") provides a hedge against inflation.
For example, if a stock pays $1.00 today and grows that dividend by 8% annually, in 9 years the payout will double to roughly $2.00 per share on the same initial investment cost basis.
Example Calculation
Let's say you want to calculate the 5-year dividend growth rate of a popular consumer goods stock.