{
  "id": "coin",
  "version": "9ad903dcdf3a",
  "status": "published",
  "name": "Coin Calculator",
  "question": "How much are my coins worth?",
  "summary": "Adds up the dollar value of US coins from how many of each you have, or estimates the count and value from the weight of each kind, with the total weight.",
  "category": "everyday-life",
  "subcategory": "money-and-shopping",
  "url": "https://www.acalculator.org/everyday-life/coin-calculator",
  "markdown": "https://www.acalculator.org/everyday-life/coin-calculator.md",
  "kind": "function",
  "method": "total = 1¢ × pennies + 5¢ × nickels + 10¢ × dimes + 25¢ × quarters + 50¢ × half dollars + $1 × dollar coins; by weight, each count = weight ÷ one coin’s weight, rounded to the nearest whole coin.",
  "assumptions": [
    "Coins weigh the US Mint’s standard weights: cent 2.500 g (copper-plated zinc, 1982 and later), nickel 5.000 g, dime 2.268 g, quarter 5.670 g, half dollar 11.340 g, dollar 8.100 g.",
    "Worn coins weigh a little less, and pennies from before 1982 weigh 3.11 g, so a count by weight is an estimate.",
    "Weigh the coins without the jar or bag."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "mode": {
        "title": "I know the",
        "description": "How many coins of each kind, or how much each kind weighs.",
        "type": "string",
        "enum": [
          "count",
          "weight"
        ]
      },
      "p": {
        "title": "Pennies",
        "description": "How many pennies you have.",
        "type": "integer",
        "minimum": 0,
        "maximum": 1000000000
      },
      "n": {
        "title": "Nickels",
        "description": "How many nickels you have.",
        "type": "integer",
        "minimum": 0,
        "maximum": 1000000000
      },
      "d": {
        "title": "Dimes",
        "description": "How many dimes you have.",
        "type": "integer",
        "minimum": 0,
        "maximum": 1000000000
      },
      "q": {
        "title": "Quarters",
        "description": "How many quarters you have.",
        "type": "integer",
        "minimum": 0,
        "maximum": 1000000000
      },
      "h": {
        "title": "Half dollars",
        "description": "How many half dollars you have.",
        "type": "integer",
        "minimum": 0,
        "maximum": 1000000000
      },
      "l": {
        "title": "Dollar coins",
        "description": "How many dollar coins you have.",
        "type": "integer",
        "minimum": 0,
        "maximum": 1000000000
      },
      "wp": {
        "title": "Weight of pennies",
        "description": "The weight of all your pennies together, without a container. Leave empty for none.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "mass",
        "minimum": 0,
        "maximum": 10000
      },
      "wn": {
        "title": "Weight of nickels",
        "description": "The weight of all your nickels together, without a container. Leave empty for none.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "mass",
        "minimum": 0,
        "maximum": 10000
      },
      "wd": {
        "title": "Weight of dimes",
        "description": "The weight of all your dimes together, without a container. Leave empty for none.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "mass",
        "minimum": 0,
        "maximum": 10000
      },
      "wq": {
        "title": "Weight of quarters",
        "description": "The weight of all your quarters together, without a container. Leave empty for none.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "mass",
        "minimum": 0,
        "maximum": 10000
      },
      "wh": {
        "title": "Weight of half dollars",
        "description": "The weight of all your half dollars together, without a container. Leave empty for none.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "mass",
        "minimum": 0,
        "maximum": 10000
      },
      "wl": {
        "title": "Weight of dollar coins",
        "description": "The weight of all your dollar coins together, without a container. Leave empty for none.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "mass",
        "minimum": 0,
        "maximum": 10000
      }
    }
  },
  "outputs": {
    "total": {
      "label": "Total value",
      "description": "What all the coins are worth together.",
      "format": "money"
    },
    "coins": {
      "label": "Number of coins",
      "description": "How many coins there are in all.",
      "format": "integer"
    },
    "breakdown": {
      "label": "By kind",
      "description": "The count and value of each kind of coin you have.",
      "format": "text"
    },
    "grams": {
      "label": "Total weight (g)",
      "description": "What the coins weigh at the US Mint’s standard weights, in grams.",
      "format": "number"
    },
    "pounds": {
      "label": "Total weight (lb)",
      "description": "The same weight in pounds.",
      "format": "number"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "mode": "count",
      "p": 37,
      "n": 12,
      "d": 25,
      "q": 40,
      "h": 0,
      "l": 0
    },
    "outputs": {
      "total": 13.47,
      "coins": 114,
      "breakdown": "37 pennies = $0.37; 12 nickels = $0.60; 25 dimes = $2.50; 40 quarters = $10.00",
      "grams": 436,
      "pounds": 0.9612154631260662
    },
    "text": "Your 114 coins are worth $13.47."
  },
  "examples": [
    {
      "given": {
        "mode": "count",
        "p": 37,
        "n": 12,
        "d": 25,
        "q": 40,
        "h": 0,
        "l": 0
      },
      "expect": {
        "total": 13.47,
        "coins": 114,
        "grams": 436
      },
      "source": "hand calculation in content.mdx: 37 + 60 + 250 + 1,000 = 1,347 cents; 37 × 2.5 + 12 × 5 + 25 × 2.268 + 40 × 5.67 = 436.0 g; United States Mint, Coin Specifications (weights: cent 2.500 g, nickel 5.000 g, dime 2.268 g, quarter 5.670 g, half dollar 11.340 g, dollar 8.100 g). https://www.usmint.gov/learn/coins-and-medals/circulating-coins/coin-specifications",
      "tolerance": 1e-12
    },
    {
      "given": {
        "mode": "weight",
        "wq": 0.45359237
      },
      "expect": {
        "coins": 80,
        "total": 20,
        "breakdown": "80 quarters = $20.00"
      },
      "source": "hand calculation in content.mdx: 453.59237 g ÷ 5.670 g = 80.0 quarters; United States Mint, Coin Specifications (weights: cent 2.500 g, nickel 5.000 g, dime 2.268 g, quarter 5.670 g, half dollar 11.340 g, dollar 8.100 g). https://www.usmint.gov/learn/coins-and-medals/circulating-coins/coin-specifications"
    },
    {
      "given": {
        "mode": "count",
        "p": 0,
        "n": 0,
        "d": 0,
        "q": 0,
        "h": 3,
        "l": 2
      },
      "expect": {
        "total": 3.5,
        "coins": 5,
        "breakdown": "3 half dollars = $1.50; 2 dollar coins = $2.00"
      },
      "source": "hand calculation in content.mdx: 3 × 50 + 2 × 100 = 350 cents; United States Mint, Coin Specifications (weights: cent 2.500 g, nickel 5.000 g, dime 2.268 g, quarter 5.670 g, half dollar 11.340 g, dollar 8.100 g). https://www.usmint.gov/learn/coins-and-medals/circulating-coins/coin-specifications"
    }
  ],
  "sources": [
    "United States Mint, Coin Specifications (cent 2.500 g, nickel 5.000 g, dime 2.268 g, quarter 5.670 g, half dollar 11.340 g, dollar 8.100 g; cents before 1982 3.11 g). https://www.usmint.gov/learn/coins-and-medals/circulating-coins/coin-specifications (retrieved 2026-10-02)",
    "NIST Handbook 44, Appendix C, General Tables of Units of Measurement (1 lb = 453.59237 g; 1 oz = 28.349523125 g). https://www.nist.gov/pml/owm/nist-handbook-44-current-edition (retrieved 2026-10-02)"
  ],
  "related": [
    "tip",
    "unit-price",
    "discount"
  ],
  "changelog": []
}
