# Landed cost calculator

- Human page: https://happytails.ai/en/business-tools/landed-cost-calculator/
- Markdown: https://happytails.ai/en/business-tools/landed-cost-calculator.md
- Structured JSON: https://happytails.ai/agents/en/business-tools/landed-cost-calculator/index.json
- Visibility: public

## Tool capabilities

| Property | Value |
| --- | --- |
| Tool ID | `landed-cost-calculator` |
| Category | business-tools |
| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |
| Browser execution | Use the visible action or interactive controls. |
| Browser processing | Browser; see tool notes for network behavior. |
| HTTP API | Not callable through HTTP. |
| Browser-agent interface | run_current_tool |

### Implementation notes

Freight, handling and other costs are shared across the lines by the basis you choose and insurance by product value, in whole minor currency units that add up exactly to each cost. Duty is your rate times the product value, or times product value plus freight and insurance. No duty rates are built in. Processing stays on your device.

### Inputs and settings

Text input: Shipment lines.

Example or placeholder shown in the interface (not a validated fixture):

```text
item,quantity,unit cost,unit weight,duty rate
```

One product per line: name, quantity, unit cost, then optional unit weight and duty rate. Write numbers without thousands separators. Up to 100,000 characters. Review the settings before running.

| Setting | Meaning | Control type | Default | Constraints |
| --- | --- | --- | --- | --- |
| `freight` | Freight for the shipment | text | "1850.00" |  |
| `insurance` | Cargo insurance | text | "120.00" |  |
| `handling` | Customs brokerage, port and handling fees | text | "395.00" |  |
| `otherCosts` | Other shipment costs | text | "0" |  |
| `freightBasis` | Share freight by | select | "weight" | Allowed: weight, value, quantity |
| `handlingBasis` | Share handling and other costs by | select | "value" | Allowed: value, weight, quantity |
| `dutyBasis` | Duty is charged on | select | "product" | Allowed: product, cif |
| `defaultDutyRate` | Duty rate for lines without one (%) | text | "0" |  |
| `currency` | Currency code | text | "USD" |  |
| `precision` | Currency decimal places | select | "2" | Allowed: 0, 1, 2, 3, 4, 5, 6 |
| `rounding` | Rounding | select | "half-up" | Allowed: half-up, half-even, half-down, down, up, floor, ceiling |

### Browser-agent workflow

1. Open the human page in a browser that supports WebMCP.
2. Discover the interface exposed by that page; use its actual schema.
3. Select files on the page first when the tool requires files.
4. Call `run_current_tool` with valid input and settings.
5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.

Calls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.

### Planning specification

Up to 150 shipment lines and 100,000 characters, with item names of up to 80 characters. Quantities from 1 to 10,000,000, unit costs up to 1,000,000 with four decimal places, unit weights up to 1,000,000 with three decimal places and duty rates up to 1,000 percent with four decimal places. Freight, insurance, handling and other costs up to 1,000,000,000 each. Calculated on your device. Download a JSON report and CSV files.

This describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.

### Complete machine-readable capability record

```json
{
  "id": "landed-cost-calculator",
  "category": "business-tools",
  "built": true,
  "requirements": "Up to 150 shipment lines and 100,000 characters, with item names of up to 80 characters. Quantities from 1 to 10,000,000, unit costs up to 1,000,000 with four decimal places, unit weights up to 1,000,000 with three decimal places and duty rates up to 1,000 percent with four decimal places. Freight, insurance, handling and other costs up to 1,000,000,000 each. Calculated on your device. Download a JSON report and CSV files.",
  "implementation": {
    "fields": [
      {
        "key": "freight",
        "label": "Freight for the shipment",
        "value": "1850.00",
        "type": "text",
        "inputMode": "decimal",
        "maxLength": 32
      },
      {
        "key": "insurance",
        "label": "Cargo insurance",
        "value": "120.00",
        "help": "Shared by product value.",
        "type": "text",
        "inputMode": "decimal",
        "maxLength": 32
      },
      {
        "key": "handling",
        "label": "Customs brokerage, port and handling fees",
        "value": "395.00",
        "type": "text",
        "inputMode": "decimal",
        "maxLength": 32
      },
      {
        "key": "otherCosts",
        "label": "Other shipment costs",
        "value": "0",
        "help": "Inspection, storage or delivery to your warehouse.",
        "type": "text",
        "inputMode": "decimal",
        "maxLength": 32
      },
      {
        "key": "freightBasis",
        "label": "Share freight by",
        "value": "weight",
        "type": "select",
        "values": [
          "weight",
          "value",
          "quantity"
        ],
        "labels": {
          "weight": "Total weight",
          "value": "Product value",
          "quantity": "Units"
        }
      },
      {
        "key": "handlingBasis",
        "label": "Share handling and other costs by",
        "value": "value",
        "type": "select",
        "values": [
          "value",
          "weight",
          "quantity"
        ],
        "labels": {
          "value": "Product value",
          "weight": "Total weight",
          "quantity": "Units"
        }
      },
      {
        "key": "dutyBasis",
        "label": "Duty is charged on",
        "value": "product",
        "help": "Check which value your customs authority uses.",
        "type": "select",
        "values": [
          "product",
          "cif"
        ],
        "labels": {
          "product": "Product value only",
          "cif": "Product value plus freight and insurance (CIF)"
        }
      },
      {
        "key": "defaultDutyRate",
        "label": "Duty rate for lines without one (%)",
        "value": "0",
        "help": "Use the rate from your import tariff for each product. No rates are built in.",
        "type": "text",
        "inputMode": "decimal",
        "maxLength": 32
      },
      {
        "key": "currency",
        "label": "Currency code",
        "value": "USD",
        "type": "text",
        "maxLength": 3,
        "autoCapitalize": "characters"
      },
      {
        "key": "precision",
        "label": "Currency decimal places",
        "value": "2",
        "type": "select",
        "values": [
          "0",
          "1",
          "2",
          "3",
          "4",
          "5",
          "6"
        ]
      },
      {
        "key": "rounding",
        "label": "Rounding",
        "value": "half-up",
        "type": "select",
        "values": [
          "half-up",
          "half-even",
          "half-down",
          "down",
          "up",
          "floor",
          "ceiling"
        ],
        "labels": {
          "half-up": "Half up (ties away from zero)",
          "half-even": "Half even (ties to even)",
          "half-down": "Half down (ties toward zero)",
          "down": "Toward zero (truncate)",
          "up": "Away from zero",
          "floor": "Toward negative infinity",
          "ceiling": "Toward positive infinity"
        }
      }
    ],
    "registrationFamily": "commerce-margins",
    "presentation": "metrics",
    "note": "Freight, handling and other costs are shared across the lines by the basis you choose and insurance by product value, in whole minor currency units that add up exactly to each cost. Duty is your rate times the product value, or times product value plus freight and insurance. No duty rates are built in. Processing stays on your device.",
    "inputMaxLength": 100000,
    "inputErrorCode": "COMMERCE_MARGINS_TOO_LONG",
    "experience": {
      "automatic": false,
      "single": false,
      "inputMaxLength": 100000,
      "inputMode": "text",
      "label": "Shipment lines",
      "placeholder": "item,quantity,unit cost,unit weight,duty rate",
      "help": "One product per line: name, quantity, unit cost, then optional unit weight and duty rate. Write numbers without thousands separators. Up to 100,000 characters. Review the settings before running.",
      "action": null
    },
    "mode": "explicit",
    "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

Work out the landed cost of each product in a shipment by sharing freight, insurance and handling across the lines and adding duty at the rates you enter. Get a landed cost per unit for pricing.

How can we improve this tool?

Report a problem or share an idea.

Please leave out private information. Your message and the tool name go to our team via PostHog.

### How to use Landed cost calculator

1. Paste one shipment line per row with quantity, unit cost and, if you have them, unit weight and duty rate.
2. Enter freight, insurance, handling and other costs for the whole shipment.
3. Choose how to share freight and handling, and whether duty is charged on product value alone or with freight and insurance.
4. Calculate, review the landed unit costs, then download the report.

## Useful next steps

- [Currency converter](https://happytails.ai/en/finance-tools/currency-converter/) ([Markdown](https://happytails.ai/en/finance-tools/currency-converter.md))

- [Markup](https://happytails.ai/en/calculators/markup/) ([Markdown](https://happytails.ai/en/calculators/markup.md))

- [Inventory turnover calculator](https://happytails.ai/en/business-tools/inventory-turnover-calculator/) ([Markdown](https://happytails.ai/en/business-tools/inventory-turnover-calculator.md))

## What goes into landed cost

Landed cost is the purchase price plus the costs of getting the goods to you. IAS 2 Inventories (revised December 2003), paragraph 11, lists the purchase price, import duties and other taxes you cannot recover, and transport, handling and other costs directly attributable to buying the goods. Each line product value is quantity times unit cost, rounded to the currency decimal places. Shared shipment costs and duty are then added, and the landed unit cost is the line total divided by its quantity.

### Sharing shipment costs

Freight is shared by total weight, product value or units, insurance by product value, and handling and other costs by the basis you choose. Each cost is split in whole minor units: every line first gets its share rounded down, and the units left go to the largest remainders, the Hamilton method described in Fair Representation by Balinski and Young (Yale University Press, 1982), so the shares add up exactly to the cost. In the example, the 729.5 kg shipment puts 699.93 of the 1,850.00 freight on the dog beds, which weigh 276 kg.

### Duty is your input

Duty for each line is the rate you enter times its dutiable value. Article 8.2 of the WTO Customs Valuation Agreement (1994) lets each country decide whether that value includes freight and insurance to the port of import, so choose product value only or product value plus freight and insurance. No tariff rates, de minimis thresholds, trade agreements or exchange rates are built in, so look up the rate for each product in your import tariff. Recoverable taxes such as VAT or GST are left out of landed cost.
