Japanese passive voice (受身形): direct passive, inanimate subjects and suffering passive
Form Japanese passive verbs, identify the agent with に or によって, and distinguish direct, inanimate-subject and adversative passive sentences.

In short
Form the 受身形 by adding られる to an ichidan stem or れる to a Godan a-row stem. A passive can describe an affected object or person; the adversative passive additionally presents a speaker or other subject as affected by an event, often unpleasantly.
| Group | Dictionary | Passive | Reading |
|---|---|---|---|
| Ichidan | 食べる | 食べられる | たべられる |
| Godan | 書く | 書かれる | かかれる |
| Godan (う) | 買う | 買われる | かわれる |
| Irregular | する | される | される |
| Irregular | 来る | 来られる | こられる |
Direct and inanimate-subject passives
私は先生に褒められました。
丁寧語 politeI was praised by the teacher.
The active object becomes the passive subject; the agent is marked by に.
この橋は百年前に建てられました。
丁寧語 politeThis bridge was built a hundred years ago.
The creator is not stated; focus is on the bridge.
この小説は若い作家によって書かれました。
丁寧語 politeThis novel was written by a young author.
によって is a common agent expression in formal accounts of creation; the verb is passive.
Use に for an ordinary passive agent. によって often occurs in written descriptions of inventions, works and discoveries. Some direct passives also use から, depending on the verb and source relationship. The passive is not automatically a complaint; being praised can be welcome.
When the affected person was not the original object
帰り道で雨に降られました。
丁寧語 politeI got caught in the rain on my way home.
雨が降る is intransitive, but the passive adds the affected person.
満員電車で足を踏まれました。
丁寧語 politeSomeone stepped on my foot on a crowded train.
The affected owner is the subject; the body part remains the object with を.
夜中に赤ちゃんに泣かれて、よく眠れませんでした。
丁寧語 politeThe baby cried in the night, and I could not sleep well.
An event with no direct object still affects the speaker.
Do not force the English passive structure onto Japanese. “My foot was stepped on” can be translated with 足を, not necessarily 足が, because the person is the affected subject. The negative feeling comes from the event and context, not an obligatory meaning of every passive form.