20′ Standard (TEU)
40′ Standard (FEU)
40′ High Cube
Fuel surcharge
Total origin + destination THC
% of Base Freight
Used to calculate cost per unit
Estimated Shipping Costs Breakdown
Base Ocean Freight:$0.00
Fuel Surcharge (BAF):$0.00
Currency Adjustment (CAF):$0.00
Terminal Handling (THC):$0.00
Doc & Customs Fees:$0.00
Cargo Insurance:$0.00
Total Shipping Cost:$0.00
Effective Cost Per Unit:$0.00
function calculateShippingCosts() {
// Get Inputs
var baseFreight = parseFloat(document.getElementById("base_freight").value);
var baf = parseFloat(document.getElementById("baf_charges").value);
var thc = parseFloat(document.getElementById("thc_charges").value);
var cafRate = parseFloat(document.getElementById("caf_rate").value);
var docFees = parseFloat(document.getElementById("doc_fees").value);
var cargoValue = parseFloat(document.getElementById("cargo_value").value);
var insuranceRate = parseFloat(document.getElementById("insurance_rate").value);
var totalUnits = parseFloat(document.getElementById("total_units").value);
// Validation / Defaulting
if (isNaN(baseFreight)) baseFreight = 0;
if (isNaN(baf)) baf = 0;
if (isNaN(thc)) thc = 0;
if (isNaN(cafRate)) cafRate = 0;
if (isNaN(docFees)) docFees = 0;
if (isNaN(cargoValue)) cargoValue = 0;
if (isNaN(insuranceRate)) insuranceRate = 0;
if (isNaN(totalUnits) || totalUnits <= 0) totalUnits = 1;
// Calculations
// CAF is usually a percentage of the Base Ocean Freight
var cafAmount = baseFreight * (cafRate / 100);
// Insurance is based on Cost + Freight (C&F) usually, but simplified here to Cargo Value * Rate
// Standard formula is often (CIF Value * 110%) * Rate, but we will use Cargo Value * Rate for simplicity
var insuranceAmount = cargoValue * (insuranceRate / 100);
var totalCost = baseFreight + baf + cafAmount + thc + docFees + insuranceAmount;
var costPerUnit = totalCost / totalUnits;
// Display Results
document.getElementById("res_base").innerText = "$" + baseFreight.toFixed(2);
document.getElementById("res_baf").innerText = "$" + baf.toFixed(2);
document.getElementById("res_caf").innerText = "$" + cafAmount.toFixed(2);
document.getElementById("res_thc").innerText = "$" + thc.toFixed(2);
document.getElementById("res_doc").innerText = "$" + docFees.toFixed(2);
document.getElementById("res_ins").innerText = "$" + insuranceAmount.toFixed(2);
document.getElementById("res_total").innerText = "$" + totalCost.toFixed(2);
document.getElementById("res_per_unit").innerText = "$" + costPerUnit.toFixed(2);
// Show Result Div
document.getElementById("results_display").style.display = "block";
}
How to Calculate Container Shipping Rates
Shipping goods internationally involves more than just the base price of the container. For importers and logistics managers, accurately calculating the total landed cost is crucial for maintaining profit margins. This Container Rate Calculator helps you aggregate the various surcharges and fees associated with ocean freight to determine the true cost of moving your cargo.
Understanding the Components of Ocean Freight
When you receive a quote from a freight forwarder or shipping line, it is often broken down into several acronyms. Understanding these is key to using the calculator effectively:
Base Ocean Freight (BAS): The fundamental cost to move the container from Port A to Port B. This fluctuates based on supply and demand (e.g., peak season).
BAF (Bunker Adjustment Factor): A floating surcharge that covers the fluctuating cost of fuel for the vessel. This is updated monthly or quarterly by shipping lines.
CAF (Currency Adjustment Factor): Applied when there is volatility between the currency of the freight cost (usually USD) and the local currency of the shipping line's headquarters. It is typically a percentage of the base freight.
THC (Terminal Handling Charges): Fees charged by the port terminals at both origin and destination for the mechanical handling of the container (cranes, forklifts, etc.).
Insurance and Cargo Value
Marine Cargo Insurance is often overlooked in initial calculations but is vital for risk management. The cost is generally calculated as a percentage of the cargo's commercial invoice value. While 0.5% to 0.8% is standard for general cargo, high-value or fragile electronics may command higher premiums. Always include this in your "Cost Per Unit" calculation to ensure your break-even analysis is accurate.
20ft (TEU) vs. 40ft (FEU) Containers
The standard unit of measure in shipping is the Twenty-foot Equivalent Unit (TEU).
20ft Container (General Purpose): Holds approximately 33 cubic meters (cbm). Ideal for heavy cargo like minerals or metals because it hits the weight limit before the volume limit.
40ft Container (General Purpose): Holds approximately 67 cubic meters. Ideal for voluminous, lighter cargo like furniture or textiles.
40ft High Cube (HC): Offers extra height, holding roughly 76 cubic meters. This is the most efficient choice for lightweight, high-volume goods.
Calculating Effective Cost Per Unit
The ultimate metric for an importer is the shipping cost per unit. By dividing the Total Landed Cost (Freight + Surcharges + Fees + Insurance) by the number of units in the container, you can determine exactly how much to add to your wholesale price to cover logistics expenses. If your shipping cost per unit is too high, consider optimizing your packaging to fit more units per container or negotiating an "All-In" rate with your forwarder.