Idiom
all for naught(all) for naught
without achievement or result.Marge's time in jail wasn't all for naught – she earned a college degree while she was there.
Usage notes: sometimes, in less formal use, nothing is substituted for naught:
I would hate to think that what we'd tried to do was all for nothing.
Etymology: based on the literal meaning of naught (= zero or nothing)