~ばよかった/~なければよかった
I should have ~ / I shouldn't have ~ (regret)
N4
V (ば form) + よかった / V (ない form minus い) + ければよかった / (spoken) ~たらよかった / emphatic: ~ばよかったのに・~ばよかったなあ
Put the verb in ば form ({行|い}く→{行|い}けば, {食|た}べる→{食|た}べれば, する→すれば, {来|く}る→{来|く}れば) and add よかった; the negative is ~なければよかった ({言|い}わなければよかった). It expresses regret about something you did or didn't do in the past; add なあ or のに at the end for stronger feeling. At work, when reflecting on a mistake, a sentence like もっと{早|はや}く{確認|かくにん}すればよかったです sounds more sincere than just apologizing. Learners often use ~ばいい (advice about what to do next) when they mean regret, or get the ば form of {来|く}る wrong (×{来|き}ればよかった → {来|く}ればよかった). Said about someone else (~ばよかったのに) it sounds like blame, so avoid it with superiors.
Examples
雨だ。傘を持ってくればよかった。
It's raining. I should have brought an umbrella.
寝坊しました。昨日早く寝ればよかったです。
I overslept. I should have gone to bed early last night.
夜にコーヒーを飲まなければよかった。ぜんぜん眠れません。
I shouldn't have had coffee at night. I can't sleep at all.
Exercises
1.財布を忘れました。出かける前に確認 よかったです。
2.お腹が痛い。あんなにたくさん よかった。
3.面接に遅れた。もう少し早く家を よかった。