The rule
ために = an action you control, for a goal you choose: verb (dictionary form) / noun + の + ために. ように = a state that is not in your hands (a potential verb, a negative, a verb like 分かる, 見える, 間に合う, or someone else's action): dictionary form / ない-form + ように. The second half of the sentence is always something you do on purpose.
Two patterns side by side
| Point | ために | ように |
|---|---|---|
| Goal | Chosen by the speaker | A hoped-for state |
| Before it | 買うために, 健康のために | 話せるように, 忘れないように |
| Subjects | Usually the same in both halves | Can differ: 子どもが寝られるように |
| Typical words | Volitional verbs, nouns | Potential, ない-form, 分かる, 見える, 間に合う |
Think of it this way: with ために you say what you are going to achieve, and with ように you say what you want to be true. 友達が読めるように, "so that my friend can read it", is about the friend's ability, not my action, so ように is the only natural choice. A volitional verb such as 買う takes ために, and the same sentence with ように would sound as if buying were out of your control.
Where your language differs
English "in order to / so that" and Ukrainian-style "щоб" use one word for both. Japanese splits them by control: ために is the "to + verb" kind, ように the "so that + clause" kind, usually with a potential or negative verb. The goal comes before the main verb, never after it, and the verb before ために or ように is in the dictionary or ない-form, not the ます-form.
Examples
- 健康のために毎日走ります。 I run every day for my health.
- 日本で働くために、日本語を勉強しています。 I am studying Japanese in order to work in Japan.
- 忘れないようにメモします。 I take notes so that I won't forget.
- 友達が読めるように、大きく書きました。 I wrote it big so that my friend can read it.
- 家を買うために、お金をためています。 I am saving money to buy a house.
- 電車に間に合うように、早く起きました。 I got up early so that I would make the train.
- かぜをひかないように、あたたかい服を着ます。 I wear warm clothes so that I don't catch a cold.
- 子どもが寝られるように、テレビを消しました。 I turned off the TV so that the child could sleep.
- 旅行するために、アルバイトをしています。 I work part-time in order to travel.
Details that matter
After a noun, ために needs の: 友達のために, 家族のために. After a verb, no の: 買うために. For "not doing", Japanese usually chooses ように: 遅れないように, 風邪をひかないように.
Another meaning of ために
After a noun or a past verb, ために can also mean "because of": 雨のために、試合は中止になりました. When the main clause is something you do on purpose, read it as a goal; when it is an event, read it as a cause.
Typical mistakes
日本語が話せる**ために**練習します日本語が話せるように練習します A potential verb is a state, so use ように.健康**ために**走ります健康のために走ります A noun needs の before ために.健康**のように**走ります健康のために走ります のように means "like", not a purpose.友達が来る**ために**掃除しました友達が来るように掃除しました The friend's coming is not your action: ように.日本語を勉強する**ように**、辞書を買いました日本語を勉強するために、辞書を買いました Studying is your own deliberate act: ために.忘れ**ます**ように、メモします忘れないように、メモします Use the ない-form, not ます, before ように.
Questions people ask
When do I use ように and when ために?
Use ために when you pursue a goal on purpose (買うために, 健康のために). Use ように when you hope for a state that is not fully in your control (話せるように, 忘れないように, 子どもが寝られるように).
Which one follows a potential verb?
Always ように: 読めるように, 話せるように. A potential verb expresses ability, which is a state.
Do I need の before ために?
Only after a noun: 家族のために. After a verb there is no の: 買うために.
How do I say "so that I don't forget"?
Use the ない-form plus ように: 忘れないように. The ます-form is not used before ように.
Can the two halves have different subjects?
Yes with ように: 子どもが寝られるように、静かにします. With ために the subject is normally the same in both halves.