# Cost per unit calculator

> Work out the price per unit so you can compare two package sizes or quotes on the same basis.

Divide a total price by the number of units to get a comparable per-unit cost.

Total price ($)
Number of units
Calculate

(function(){var f=document.getElementById("tool-form");if(!f)return;f.addEventListener("submit",function(ev){ev.preventDefault();var p=Number(document.getElementById('price').value)||0;var u=Number(document.getElementById('units').value)||0;var out;if(u
