Both make the passive. Be is neutral and works everywhere: The window was broken. Get is informal and often suggests something happened suddenly, by accident, or wasn't wanted: The window got broken during the party.
Same situation, two choices. Pick an example.
The window was broken.
The standard passive, in speech and writing.
The window got broken during the party.
Informal, often for something sudden, accidental or unexpected.
| Rule | Be passive | Get passive |
|---|---|---|
| Style | Neutral: speech and formal writing | Informal: mostly speech |
| Meaning | Any action | Often sudden, accidental or unwanted |
| Typical verbs | Any verb with an object | get hurt, get stolen, get caught, get paid, get promoted |
| Example | The results were announced. | My phone got stolen! |
Be careful or you'll _____ hurt!
Paste an email or an essay. Clarigram marks the mistakes you actually make, shows the rule behind each one as a picture, and builds your practice from them.
Not wrong, but informal. In essays, reports and exams, use be. In messages and speech, get is natural.