Bet the Farm

What does the idiom “Bet the Farm” mean?

Definition:

Risk everything; spend all one’s money on something in hopes of success

For example:

“I bet the farm on that investment, and it failed. Now I’m completely broke.”

Notes:

“Bet the house” is a rarer alternative.