If you had studied harder, you would have passed the exam. This is a third conditional sentence. Third conditional is used to talk about hypothetical situations in the past, things that did not happen. The structure is 'If + past perfect, would have + past participle'.