Amazon calculates the shipping cost of an order by taking into account various factors such as the weight and size of the item, the shipping method chosen by the customer, and the delivery address. The shipping cost is usually higher for larger and heavier items, and can vary depending on the shipping method selected by the customer, such as standard or expedited shipping.