← All tool references

Finance · not_available

Dividend Reinvestment Calculator

Project shares and value with reinvested dividends and contributions.

Open public tool

Overview

Category
Finance
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/dividend-reinvestment-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/dividend-reinvestment-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

initial_investment · number · required
Enter initial investment for this calculation.
share_price · number · required
Enter share price for this calculation.
dividend_yield · number · required
Enter annual dividend yield for this calculation.
price_growth · number · required
Enter annual price growth for this calculation.
monthly_contribution · number · required
Enter monthly contribution for this calculation.
years · number · required
Enter years for this calculation.
{
    "type": "object",
    "properties": {
        "initial_investment": {
            "type": "number",
            "description": "Enter initial investment for this calculation.",
            "minimum": 0
        },
        "share_price": {
            "type": "number",
            "description": "Enter share price for this calculation.",
            "minimum": 0
        },
        "dividend_yield": {
            "type": "number",
            "description": "Enter annual dividend yield for this calculation."
        },
        "price_growth": {
            "type": "number",
            "description": "Enter annual price growth for this calculation."
        },
        "monthly_contribution": {
            "type": "number",
            "description": "Enter monthly contribution for this calculation.",
            "minimum": 0
        },
        "years": {
            "type": "number",
            "description": "Enter years for this calculation.",
            "minimum": 1
        }
    },
    "required": [
        "initial_investment",
        "share_price",
        "dividend_yield",
        "price_growth",
        "monthly_contribution",
        "years"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

ending_value · number
Projected ending value calculated by the tool.
ending_shares · number
Projected shares calculated by the tool.
contributions · number
Total contributions calculated by the tool.
dividends_reinvested · number
Dividends reinvested calculated by the tool.
timeline · array
Annual timeline calculated by the tool.
{
    "type": "object",
    "properties": {
        "ending_value": {
            "type": "number",
            "description": "Projected ending value calculated by the tool."
        },
        "ending_shares": {
            "type": "number",
            "description": "Projected shares calculated by the tool."
        },
        "contributions": {
            "type": "number",
            "description": "Total contributions calculated by the tool."
        },
        "dividends_reinvested": {
            "type": "number",
            "description": "Dividends reinvested calculated by the tool."
        },
        "timeline": {
            "type": "array",
            "description": "Annual timeline calculated by the tool."
        }
    },
    "additionalProperties": false
}

Dividend Reinvestment Calculator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/dividend-reinvestment-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "initial_investment": 10000,
    "share_price": 50,
    "dividend_yield": 3,
    "price_growth": 5,
    "monthly_contribution": 200,
    "years": 10
}'
{
    "ok": true,
    "data": {
        "slug": "dividend-reinvestment-calculator",
        "result": {
            "values": {
                "ending_value": 58930.25,
                "ending_shares": 715.6029999999999517967808060348033905029296875,
                "contributions": 34000,
                "dividends_reinvested": 9410.59000000000014551915228366851806640625,
                "timeline": [
                    {
                        "year": 1,
                        "share_price": 52.56000000000000227373675443232059478759765625,
                        "shares": 253.5801999999999907231540419161319732666015625,
                        "value": 13327.690000000000509317032992839813232421875
                    },
                    {
                        "year": 2,
                        "share_price": 55.25,
                        "shares": 306.47840000000002191882231272757053375244140625,
                        "value": 16932.02999999999883584678173065185546875
                    },
                    {
                        "year": 3,
                        "share_price": 58.07000000000000028421709430404007434844970703125,
                        "shares": 358.786299999999982901499606668949127197265625,
                        "value": 20836.00999999999839928932487964630126953125
                    },
                    {
                        "year": 4,
                        "share_price": 61.03999999999999914734871708787977695465087890625,
                        "shares": 410.5928999999999859937815926969051361083984375,
                        "value": 25064.54999999999927240423858165740966796875
                    },
                    {
                        "year": 5,
                        "share_price": 64.1700000000000017053025658242404460906982421875,
                        "shares": 461.9850000000000136424205265939235687255859375,
                        "value": 29644.61999999999898136593401432037353515625
                    },
                    {
                        "year": 6,
                        "share_price": 67.4500000000000028421709430404007434844970703125,
                        "shares": 513.0466000000000121872290037572383880615234375,
                        "value": 34605.449999999997089616954326629638671875
                    },
                    {
                        "year": 7,
                        "share_price": 70.900000000000005684341886080801486968994140625,
                        "shares": 563.8600999999999885403667576611042022705078125,
                        "value": 39978.6900000000023283064365386962890625
                    },
                    {
                        "year": 8,
                        "share_price": 74.530000000000001136868377216160297393798828125,
                        "shares": 614.505300000000033833202905952930450439453125,
                        "value": 45798.639999999999417923390865325927734375
                    }
                ]
            },
            "display": {
                "display": "58930.25"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.