{
  "title": "Unit price calculator",
  "human_url": "https://happytails.ai/en/business-tools/unit-price-calculator/",
  "agent_url": "https://happytails.ai/agents/en/business-tools/unit-price-calculator/",
  "language": "en",
  "markdown_url": "https://happytails.ai/en/business-tools/unit-price-calculator.md",
  "content": "Unit price calculator\nCompare two pack prices using equivalent quantities. See which costs less per kilogram, liter, meter, square meter or item.\nHow can we improve this tool?\nReport a problem or share an idea.\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\nHow to use Unit price calculator\nEnter the total price of each pack in the same currency.\nSet the amount in one item, its unit, and the number of items in each pack.\nCompare the price per equivalent unit. Copy the result or download the comparison as JSON.\nUseful next steps\nDiscount\nWeight\nVolume\nCompare the same quantity\nA 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.\nInclude the whole pack\nFor 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.\nKeep the comparison fair\nBoth prices must use the same currency. Include taxes and other charges consistently. This tool compares quantity-adjusted prices, not quality, ingredients or delivery terms.",
  "content_format": "text/plain",
  "visibility": "public",
  "links": [
    {
      "name": "Discount",
      "url": "https://happytails.ai/en/calculators/discount/"
    },
    {
      "name": "Weight",
      "url": "https://happytails.ai/en/unit-converters/weight/"
    },
    {
      "name": "Volume",
      "url": "https://happytails.ai/en/unit-converters/volume/"
    }
  ],
  "tool": {
    "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.",
        "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"
    }
  },
  "markdown": "# Unit price calculator\n\n- Human page: https://happytails.ai/en/business-tools/unit-price-calculator/\n- Markdown: https://happytails.ai/en/business-tools/unit-price-calculator.md\n- Structured JSON: https://happytails.ai/agents/en/business-tools/unit-price-calculator/index.json\n- Visibility: public\n\n## Tool capabilities\n\n| Property | Value |\n| --- | --- |\n| Tool ID | `unit-price-calculator` |\n| Category | business-tools |\n| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |\n| Browser execution | Automatic updates after valid input or file selection. |\n| Browser processing | Browser; see tool notes for network behavior. |\n| HTTP API | Not callable through HTTP. |\n| Browser-agent interface | run_current_tool |\n\n### Implementation notes\n\nUse 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.\n\n### Inputs and settings\n\nNo free-text input is required. Use the file inputs and/or settings below.\n\n| Setting | Meaning | Control type | Default | Constraints |\n| --- | --- | --- | --- | --- |\n| `priceA` | Total price A | number | 3 | min=0 |\n| `priceB` | Total price B | number | 5 | min=0 |\n| `quantityA` | Amount per item A | number | 500 |  |\n| `quantityB` | Amount per item B | number | 1 |  |\n| `unitA` | Unit A | select | \"g\" | Allowed: g, kg, lb, oz, mL, L, US gallon, Imperial gallon, cm, m, ft, yd, m², ft², item |\n| `unitB` | Unit B | select | \"kg\" | Allowed: g, kg, lb, oz, mL, L, US gallon, Imperial gallon, cm, m, ft, yd, m², ft², item |\n| `packagesA` | Number of items A | number | 1 | min=1 max=1000000 step=1 |\n| `packagesB` | Number of items B | number | 1 | min=1 max=1000000 step=1 |\n\n### Browser-agent workflow\n\n1. Open the human page in a browser that supports WebMCP.\n2. Discover the interface exposed by that page; use its actual schema.\n3. Select files on the page first when the tool requires files.\n4. Call `run_current_tool` with valid input and settings.\n5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.\n\nCalls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.\n\n### Planning specification\n\nUse 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.\n\nThis describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.\n\n### Complete machine-readable capability record\n\n```json\n{\n  \"id\": \"unit-price-calculator\",\n  \"category\": \"business-tools\",\n  \"built\": true,\n  \"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.\",\n  \"implementation\": {\n    \"fields\": [\n      {\n        \"key\": \"priceA\",\n        \"label\": \"Total price A\",\n        \"value\": 3,\n        \"type\": \"number\",\n        \"min\": 0\n      },\n      {\n        \"key\": \"priceB\",\n        \"label\": \"Total price B\",\n        \"value\": 5,\n        \"type\": \"number\",\n        \"min\": 0\n      },\n      {\n        \"key\": \"quantityA\",\n        \"label\": \"Amount per item A\",\n        \"value\": 500,\n        \"type\": \"number\",\n        \"help\": \"Use a positive amount.\"\n      },\n      {\n        \"key\": \"quantityB\",\n        \"label\": \"Amount per item B\",\n        \"value\": 1,\n        \"type\": \"number\",\n        \"help\": \"Use a positive amount.\"\n      },\n      {\n        \"key\": \"unitA\",\n        \"label\": \"Unit A\",\n        \"value\": \"g\",\n        \"type\": \"select\",\n        \"values\": [\n          \"g\",\n          \"kg\",\n          \"lb\",\n          \"oz\",\n          \"mL\",\n          \"L\",\n          \"US gallon\",\n          \"Imperial gallon\",\n          \"cm\",\n          \"m\",\n          \"ft\",\n          \"yd\",\n          \"m²\",\n          \"ft²\",\n          \"item\"\n        ],\n        \"labels\": {\n          \"g\": \"g\",\n          \"kg\": \"kg\",\n          \"lb\": \"lb\",\n          \"oz\": \"oz\",\n          \"mL\": \"mL\",\n          \"L\": \"L\",\n          \"US gallon\": \"US liquid gallons\",\n          \"Imperial gallon\": \"Imperial gallons\",\n          \"cm\": \"cm\",\n          \"m\": \"m\",\n          \"ft\": \"ft\",\n          \"yd\": \"yd\",\n          \"m²\": \"m²\",\n          \"ft²\": \"ft²\",\n          \"item\": \"Individual items\"\n        }\n      },\n      {\n        \"key\": \"unitB\",\n        \"label\": \"Unit B\",\n        \"value\": \"kg\",\n        \"type\": \"select\",\n        \"values\": [\n          \"g\",\n          \"kg\",\n          \"lb\",\n          \"oz\",\n          \"mL\",\n          \"L\",\n          \"US gallon\",\n          \"Imperial gallon\",\n          \"cm\",\n          \"m\",\n          \"ft\",\n          \"yd\",\n          \"m²\",\n          \"ft²\",\n          \"item\"\n        ],\n        \"labels\": {\n          \"g\": \"g\",\n          \"kg\": \"kg\",\n          \"lb\": \"lb\",\n          \"oz\": \"oz\",\n          \"mL\": \"mL\",\n          \"L\": \"L\",\n          \"US gallon\": \"US liquid gallons\",\n          \"Imperial gallon\": \"Imperial gallons\",\n          \"cm\": \"cm\",\n          \"m\": \"m\",\n          \"ft\": \"ft\",\n          \"yd\": \"yd\",\n          \"m²\": \"m²\",\n          \"ft²\": \"ft²\",\n          \"item\": \"Individual items\"\n        }\n      },\n      {\n        \"key\": \"packagesA\",\n        \"label\": \"Number of items A\",\n        \"value\": 1,\n        \"type\": \"number\",\n        \"min\": 1,\n        \"max\": 1000000,\n        \"step\": 1\n      },\n      {\n        \"key\": \"packagesB\",\n        \"label\": \"Number of items B\",\n        \"value\": 1,\n        \"type\": \"number\",\n        \"min\": 1,\n        \"max\": 1000000,\n        \"step\": 1\n      }\n    ],\n    \"input\": false,\n    \"live\": true,\n    \"presentation\": \"metrics\",\n    \"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.\",\n    \"experience\": {\n      \"automatic\": true,\n      \"single\": false,\n      \"inputMaxLength\": 1000000,\n      \"inputMode\": \"text\",\n      \"label\": \"Your text\",\n      \"placeholder\": \"Type or paste your input…\",\n      \"help\": \"Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.\",\n      \"action\": null\n    },\n    \"mode\": \"automatic\",\n    \"interactive\": false\n  },\n  \"execution\": \"Browser interface\",\n  \"api\": null,\n  \"browser_agent\": {\n    \"supported\": true,\n    \"name\": \"run_current_tool\",\n    \"discovery\": \"WebMCP on the human page in a supporting browser\",\n    \"verification\": \"See audit/API-AUDIT.md; availability is not verification\"\n  }\n}\n```\n\n## Page guide\n\nCompare two pack prices using equivalent quantities. See which costs less per kilogram, liter, meter, square meter or item.\n\nHow can we improve this tool?\n\nReport a problem or share an idea.\n\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\n\n### How to use Unit price calculator\n\n1. Enter the total price of each pack in the same currency.\n2. Set the amount in one item, its unit, and the number of items in each pack.\n3. Compare the price per equivalent unit. Copy the result or download the comparison as JSON.\n\n## Useful next steps\n\n- [Discount](https://happytails.ai/en/calculators/discount/) ([Markdown](https://happytails.ai/en/calculators/discount.md))\n\n- [Weight](https://happytails.ai/en/unit-converters/weight/) ([Markdown](https://happytails.ai/en/unit-converters/weight.md))\n\n- [Volume](https://happytails.ai/en/unit-converters/volume/) ([Markdown](https://happytails.ai/en/unit-converters/volume.md))\n\n## Compare the same quantity\n\nA 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.\n\n### Include the whole pack\n\nFor 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.\n\n### Keep the comparison fair\n\nBoth prices must use the same currency. Include taxes and other charges consistently. This tool compares quantity-adjusted prices, not quality, ingredients or delivery terms.\n"
}