happytails.ai

Unit price calculator

Open Unit price calculator on Happytails.ai. This view has the same page content and links, with explicit tool capabilities. Read the processing notes before using a tool.

Tool capabilities

{
  "id": "unit-price-calculator",
  "category": "business-tools",
  "built": true,
  "requirements": "Use the same currency for both total prices and include any charges you want to compare. Amount per item is multiplied by the number of items in the pack. You can compare different units of the same quantity, such as grams and kilograms, but cannot mix mass with volume without a separate density conversion. Results use floating-point arithmetic rounded to 12 significant digits. Quality, delivery conditions and product suitability are not compared.",
  "implementation": {
    "fields": [
      {
        "key": "priceA",
        "label": "Total price A",
        "value": 3,
        "type": "number",
        "min": 0
      },
      {
        "key": "priceB",
        "label": "Total price B",
        "value": 5,
        "type": "number",
        "min": 0
      },
      {
        "key": "quantityA",
        "label": "Amount per item A",
        "value": 500,
        "type": "number",
        "help": "Use a positive amount."
      },
      {
        "key": "quantityB",
        "label": "Amount per item B",
        "value": 1,
        "type": "number",
        "help": "Use a positive amount."
      },
      {
        "key": "unitA",
        "label": "Unit A",
        "value": "g",
        "type": "select",
        "values": [
          "g",
          "kg",
          "lb",
          "oz",
          "mL",
          "L",
          "US gallon",
          "Imperial gallon",
          "cm",
          "m",
          "ft",
          "yd",
          "m²",
          "ft²",
          "item"
        ],
        "labels": {
          "g": "g",
          "kg": "kg",
          "lb": "lb",
          "oz": "oz",
          "mL": "mL",
          "L": "L",
          "US gallon": "US liquid gallons",
          "Imperial gallon": "Imperial gallons",
          "cm": "cm",
          "m": "m",
          "ft": "ft",
          "yd": "yd",
          "m²": "m²",
          "ft²": "ft²",
          "item": "Individual items"
        }
      },
      {
        "key": "unitB",
        "label": "Unit B",
        "value": "kg",
        "type": "select",
        "values": [
          "g",
          "kg",
          "lb",
          "oz",
          "mL",
          "L",
          "US gallon",
          "Imperial gallon",
          "cm",
          "m",
          "ft",
          "yd",
          "m²",
          "ft²",
          "item"
        ],
        "labels": {
          "g": "g",
          "kg": "kg",
          "lb": "lb",
          "oz": "oz",
          "mL": "mL",
          "L": "L",
          "US gallon": "US liquid gallons",
          "Imperial gallon": "Imperial gallons",
          "cm": "cm",
          "m": "m",
          "ft": "ft",
          "yd": "yd",
          "m²": "m²",
          "ft²": "ft²",
          "item": "Individual items"
        }
      },
      {
        "key": "packagesA",
        "label": "Number of items A",
        "value": 1,
        "type": "number",
        "min": 1,
        "max": 1000000,
        "step": 1
      },
      {
        "key": "packagesB",
        "label": "Number of items B",
        "value": 1,
        "type": "number",
        "min": 1,
        "max": 1000000,
        "step": 1
      }
    ],
    "input": false,
    "live": true,
    "presentation": "metrics",
    "note": "Use the same currency for both total prices. Amount per item × item count gives the total quantity. Compare the same kind of quantity. Results are rounded to 12 significant digits.",
    "experience": {
      "automatic": true,
      "single": false,
      "inputMaxLength": 1000000,
      "inputMode": "text",
      "label": "Your text",
      "placeholder": "Type or paste your input…",
      "help": "Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.",
      "helpParts": [
        "Change the input or settings to update your result.",
        "Results update as you type.",
        "Up to 1,000,000 characters."
      ],
      "action": null
    },
    "mode": "automatic",
    "interactive": false
  },
  "execution": "Browser interface",
  "api": null,
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}

Page guide

Compare two pack prices using equivalent quantities. See which costs less per kilogram, liter, meter, square meter or item.

How to use Unit price calculator
  1. Enter the total price of each pack in the same currency.
  2. Set the amount in one item, its unit, and the number of items in each pack.
  3. Compare the price per equivalent unit. Copy the result or download the comparison as JSON.

Useful next steps

Compare the same quantity

A 500 g pack priced at 3 costs 6 per kilogram. A 1 kg pack priced at 5 costs 5 per kilogram, so its unit price is lower even though its pack price is higher.

Include the whole pack

For four 250 g items sold together for 3, enter 3 as the total price, 250 as the amount, grams as the unit and 4 as the item count. The total quantity is 1 kg.

Keep the comparison fair

Both prices must use the same currency. Include taxes and other charges consistently. This tool compares quantity-adjusted prices, not quality, ingredients or delivery terms.