used to work at Sam's Club in highschool (yeah. it was awful then. I suspect it's more-awful now). What people don't want to know? those big ginormous tubs of mayo? they go bad rather quickly. Not like, rancid bad, but they're definitely not as fresh or as worthwhile.
Also the rotisserie chickens, bakery and meat are loss leaders to get you in the door. everything else they're making huge profits on. Especially everything that's at the front of the store- the bulk candy, the electronics, the seasonal things. those god awful t-shirts and disgustingly cheap tube tops.
never by mayo in bulk. Also never buy the nacho cheese. Nobody needs a gallon-can of nacho-flavored valve sealant. just. trust me on that.
this is basically the start point and at relatively close scales will work pretty well.
this can also be expressed as a 2 in 10 (20%) bulk discount.
you can add on adjustments if you can estimate other factors like the admin cost (of your time) per transaction, a defect rate cost or spoilage, cost of storage and transportation and so on.
These overheads can sometimes be shared across other products, especially transport and storage.
for longer term stuff you might want to translate this into an equivalent annual (or longer ) cost per year/day of consumption that covers expected consumption with your safety margin.
if you need to account for every element of you cost base to the nearest penny then it can get pretty complicated - but if you're prepared to make simplifying assumptions like:
"It doesn't spoil over time",
"I already have some unused space",
"i don't need insurance on storage.",
"i'm going to ignore any adjustments lower than 0.001 cents per unit (a materiality threshold)"
Whether those assumptions are a good idea or not, depends upon the wider context.
As others mentioned, it's simple division. But to properly compare, you have to take into consideration the "units" in which you're dividing.
E.g. if you're buying crayons, you can compare the # of crayons to the price. But if you're buying chicken breasts, you can't really compare the # of chicken breasts, but rather the ounces (or, whatever measurement of weight).
For cost per unit, you divide the cost by the number of units. $20/(200 units) = $0.10 per unit. $60/750= $0.08, so 2 cents cheaper per unit.
But if you actually only need 50 but can't resist a "good deal":
The 200 cost $0.40 per item that you actually need, the 750 cost $1.20 per item that you actually need (plus the cost of storing and at some point throwing out the ones you don't need).
Total Cost of batch / quantity of items = cost per individual item.
20 dollars /200 items =10 cents per item
60$/750item= 8 cents per item.
It will be helpful for you to let this equation roll in your brain for a bit and try to understand why it is true maybe.
Geometrically the same exact idea can be visualized. you can think of total cost $ being the length of a line segment, and the quantity of items as equally split portions of that line seg. If you have a total cost of 1$ (a line seg with length of 1) and get two items, the cost of each item is 50c, or the line will be partitioned equally in two exactly In half. If you had three items the line would be split into thirds and so on.
This right here answers your own question. The word "per" implies division in math. Cost per unit = cost divided by units. If cost is $20, and units is 200, that means you have $20 / 200 = $0.10.
Similarly, 150 miles per 2 hours is 150 miles / 2 hours = 75 miles / 1 hour = 75 miles per hour
Other math vocabulary hints: and means addition (3 and 5 is 8) and of means multiplication, typically with a fraction (half of 6 = 1/2 * 6 = .5 * 6 if you prefer = 3
200 for $20 is $0.10 each (200 for 2000 pennies) while 750 for $60 is $0.08 each (750 for 6000 pennies) so you save 2 cents per item. Or you got 150 items for free by buying the 750 pack.
I look at it like a discount. It's 20% off. My wife can get mad when I buy things cause they're on sale from Sam's club. Not perishable stuff, but like soap or deodorants or canned goods. If something is on sale for $8 that's normally $10, I'm getting a 20% discount on it. Or it's like an investment. You'd be crazy not to invest money in something that was guaranteed a 20% return in less than a year.