{
  "id": "dividend-reinvestment",
  "version": "bc5791159121",
  "status": "published",
  "name": "Dividend Reinvestment Calculator",
  "question": "Is dividend reinvestment worth it?",
  "summary": "Projects a stock or fund holding with its dividends reinvested (DRIP), from the yield, dividend growth, price growth and monthly additions you type, next to taking the dividends as cash.",
  "category": "finance",
  "subcategory": "investing",
  "url": "https://www.acalculator.org/finance/dividend-reinvestment-calculator",
  "markdown": "https://www.acalculator.org/finance/dividend-reinvestment-calculator.md",
  "kind": "schedule",
  "method": "Each month the price grows by (1 + price growth)^(1/12). On a payment month the dividend = shares × (start price × yield × (1 + dividend growth)^year ÷ payments a year) × (1 − tax), and with reinvesting it buys dividend ÷ price more shares; the monthly addition buys addition ÷ price shares.",
  "assumptions": [
    "The yield, dividend growth and price growth are yours to type and stay the same every year; no live prices or quotes are used.",
    "Dividends are reinvested on the payment day at that day’s price, in fractional shares, with no fees.",
    "Monthly additions buy shares at the end of each month.",
    "Tax, if any, comes out of each dividend before it is reinvested; taxes on selling are not included."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "initial": {
        "title": "Starting investment",
        "description": "What you invest at the start.",
        "type": "number",
        "x-unit": "USD",
        "exclusiveMinimum": 0,
        "maximum": 10000000000
      },
      "price": {
        "title": "Share price at the start",
        "description": "The price of one share when you buy, typed by you. It sets how many shares you hold.",
        "type": "number",
        "x-unit": "USD",
        "minimum": 0.01,
        "maximum": 1000000
      },
      "yield": {
        "title": "Dividend yield",
        "description": "The yearly dividend per share as a percent of the starting share price.",
        "type": "number",
        "x-unit": "percent",
        "minimum": 0,
        "maximum": 30
      },
      "dgrowth": {
        "title": "Dividend growth each year",
        "description": "How much the dividend per share rises each year.",
        "type": "number",
        "x-unit": "percent",
        "minimum": 0,
        "maximum": 30
      },
      "pgrowth": {
        "title": "Share price growth each year",
        "description": "How much the share price rises each year. Negative for a fall.",
        "type": "number",
        "x-unit": "percent",
        "minimum": -20,
        "maximum": 30
      },
      "years": {
        "title": "Years",
        "description": "How many years you hold the investment.",
        "type": "integer",
        "minimum": 1,
        "maximum": 60
      },
      "freq": {
        "title": "Dividends are paid",
        "description": "How often the dividend is paid: monthly, quarterly, twice a year or yearly.",
        "type": "string",
        "enum": [
          "12",
          "4",
          "2",
          "1"
        ]
      },
      "add": {
        "title": "You add",
        "description": "Money you add to the holding, per month or per year. A yearly amount is split into 12.",
        "type": "number",
        "x-unit": "USD",
        "x-period": "month",
        "minimum": 0,
        "maximum": 100000000
      },
      "drip": {
        "title": "Reinvest dividends",
        "description": "On: each dividend buys more shares (a DRIP). Off: dividends are taken as cash.",
        "type": "boolean"
      },
      "tax": {
        "title": "Tax on dividends",
        "description": "The tax rate on dividends, taken out before they are reinvested or paid. 0 for a tax-free account.",
        "type": "number",
        "x-unit": "percent",
        "minimum": 0,
        "maximum": 60
      }
    }
  },
  "outputs": {
    "value": {
      "label": "Value at the end",
      "description": "Shares × share price at the end, plus any dividends taken as cash.",
      "format": "money"
    },
    "invested": {
      "label": "You put in",
      "description": "The starting investment plus every addition.",
      "format": "money"
    },
    "dividends": {
      "label": "Total dividends",
      "description": "Every dividend paid, after tax.",
      "format": "money"
    },
    "lastYear": {
      "label": "Dividends in the last year",
      "description": "The dividends paid in the last 12 months, after tax.",
      "format": "money"
    },
    "shares": {
      "label": "Shares at the end",
      "description": "The shares you hold at the end.",
      "format": "number"
    },
    "withoutDrip": {
      "label": "With dividends taken as cash",
      "description": "The value at the end if every dividend had been taken as cash: shares × price + the cash.",
      "format": "money"
    },
    "dripGain": {
      "label": "Reinvesting adds",
      "description": "The value at the end minus the value with dividends taken as cash. Shown when reinvesting.",
      "format": "money"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "initial": 10000,
      "price": 50,
      "yield": 3,
      "dgrowth": 5,
      "pgrowth": 4,
      "years": 20,
      "freq": "4",
      "add": 0,
      "drip": true,
      "tax": 0
    },
    "outputs": {
      "value": 41539.010306515316,
      "invested": 10000,
      "dividends": 14404.836894888642,
      "lastYear": 1406.323870176491,
      "shares": 379.15724124028606,
      "withoutDrip": 31831.01766120099,
      "dripGain": 9707.992645314327
    },
    "text": "$10,000.00 held for 20 years at a 3% dividend yield ends at about $41,539.01; with every dividend taken as cash, $31,831.02."
  },
  "examples": [
    {
      "given": {
        "initial": 10000,
        "price": 100,
        "yield": 4,
        "dgrowth": 0,
        "pgrowth": 0,
        "years": 1,
        "freq": "4",
        "drip": true
      },
      "expect": {
        "shares": 104.060401,
        "value": 10406.0401,
        "dividends": 406.0401,
        "withoutDrip": 10400,
        "dripGain": 6.0401
      },
      "source": "SEC Investor.gov, \"Direct Investment Plans: Buying Stock Directly from the Company\" (dividend reinvestment plans) (https://www.investor.gov/introduction-investing/investing-basics/glossary/direct-investment-plans-buying-stock-directly); hand calculation in content.mdx: each quarter pays 1% and buys 1% more shares: 100 × 1.01^4 = 104.060401 shares"
    },
    {
      "given": {
        "initial": 10000,
        "price": 50,
        "yield": 3,
        "dgrowth": 0,
        "pgrowth": 0,
        "years": 2,
        "freq": "1",
        "drip": false,
        "add": 100
      },
      "expect": {
        "invested": 12400,
        "dividends": 702,
        "lastYear": 369,
        "value": 13102,
        "shares": 248
      },
      "source": "SEC Investor.gov, \"Direct Investment Plans: Buying Stock Directly from the Company\" (dividend reinvestment plans) (https://www.investor.gov/introduction-investing/investing-basics/glossary/direct-investment-plans-buying-stock-directly); hand calculation in content.mdx: dividends as cash: 222 × 1.50 = 333, then 246 × 1.50 = 369"
    },
    {
      "given": {
        "initial": 10000,
        "price": 50,
        "yield": 3,
        "dgrowth": 5,
        "pgrowth": 4,
        "years": 20,
        "freq": "4",
        "drip": true
      },
      "expect": {
        "value": 41539.010306515316,
        "shares": 379.15724124028606,
        "dividends": 14404.836894888642,
        "lastYear": 1406.3238701764913,
        "withoutDrip": 31831.01766120099
      },
      "source": "month by month as in content.mdx; Python 3 cross-check (docs/progress/WP-51/drip_check.py) runs every month"
    }
  ],
  "sources": [
    "U.S. Securities and Exchange Commission, Investor.gov, \"Direct Investment Plans: Buying Stock Directly from the Company\" (dividend reinvestment plans). https://www.investor.gov/introduction-investing/investing-basics/glossary/direct-investment-plans-buying-stock-directly",
    "Internal Revenue Service, Topic no. 404, Dividends (reinvested dividends are taxable). https://www.irs.gov/taxtopics/tc404"
  ],
  "related": [
    "dividend",
    "compound-interest",
    "investment"
  ],
  "changelog": []
}
