Fetching details from the dictionary...

to make a mistake (in); to commit an error; to get wrong; to do incorrectly
to mistake (one thing for another); to confuse
テストの答えを間違えてしまいました。
I got the answer wrong.
兄と弟をよく間違えられます。
People often confuse my older and younger brothers.
道を間違えてしまいます。
I took the wrong road.