what is the halacha of overcharging? the rule everyone quotes is a sixth (onaah). where does that number come from, what happens in each case, and does it still apply today when there is no single market price?

the source is a pasuk: וכי תמכרו ממכר לעמיתך או קנוה מיד עמיתך אל תונו איש את אחיו (ויקרא כה יד). overcharging or underpaying is a real לא תעשה, not just a pricing dispute (rambam, hilchos mechirah 12:1).

the mishnah (bava metzia 4:7) sets the line: האונאה ארבעה כסף מעשרים וארבעה כסף לסלע שתות למקח, one sixth of the value. the rambam and shulchan aruch (choshen mishpat 227) split it into three cases: more than a sixth, the deal is void. exactly a sixth, the deal stands but the extra money goes back. less than a sixth, the deal stands and nothing goes back, because people wave off small differences.

and the window to complain is short: only until the buyer has had time to show the item to a merchant or a relative and learn the real price. after that, even a sale at double the value cannot be undone (rambam mechirah 12:5, mishnah 4:7).

one more wrinkle: choshen mishpat 227:27 says if the seller openly states what the item cost and what the markup is, there is no onaah at all.

so the question today: the sixth assumes a going price that people can be wrong about. in normal retail every store sets its own price and margins vary wildly. in dropshipping the seller barely touches the product and prices float everywhere. is there still a measurable market price that the sixth is measured against? and if a seller openly tells the buyer the markup, does 227:27 take the sale out of onaah completely?