HSK 7–9 grammar · adverb
幸好
幸好 — luckily
Pattern
+ +
( ) can be left out · other words may come before, between and after
How it works
幸好 names the lucky circumstance that kept trouble away, and is usually followed by a clause with 否则/要不然 saying what would otherwise have happened. It is interchangeable with 幸亏.
Examples
幸好带了伞,不然就淋湿了。
Xìnghǎo dài le sǎn, bùrán jiù lín shī le.
Luckily I brought an umbrella, or I'd have got soaked.
幸好你提醒我。
Xìnghǎo nǐ tíxǐng wǒ.
Luckily you reminded me.
Related
幸亏 · 幸亏 — luckily, thanks to好在 · 好在 — fortunately, the good thing is要不然/不然 · 要不然/不然 — otherwise / or else否则 · 否则 — otherwise / or else

See it in a story
In the app, 幸好 is underlined wherever it appears in the stories you read, and practised with sentences from them. Free.