(わり)

わりに
adverb
comparatively; relatively; considering
1. comparatively; relatively; more than expected
Indicates that something is more or less than what would be expected given the circumstances. Often expresses mild surprise.
(わり)簡単(かんたん)だった。
It was relatively easy.
この(みせ)(わり)においしい。
This restaurant is surprisingly good.
2. considering; for; given that
Used after a clause to mean 'considering that...' or 'for...' — the result is unexpected given the premise.
たくさん()べた(わり)(ふと)らなかった。
Considering how much I ate, I didn't gain weight.
値段(ねだん)(たか)(わり)品質(ひんしつ)がよくない。
The quality isn't good for the high price.
勉強(べんきょう)した(わり)成績(せいせき)()がらない。
My grades aren't improving considering how much I studied.
年齢(ねんれい)(わり)(わか)()える。
They look young for their age.

GRAMMAR:
In sense 1, (わり)に functions as a standalone adverb meaning "comparatively." In sense 2, it follows a clause (verb/adjective + (わり)に) and means "considering that..." The colloquial form (わり)には (with は) adds slight emphasis.

COMMON PATTERNS:

  • Verb た(わり)に (considering that [someone] did...)
  • Noun の(わり)に (for a...)
  • い-adj (わり)に (considering it's...)
  • な-adj な(わり)に (considering it's...)