Use: It talks about the past. It's used to describe a situation that didn't happen, and to imagine the result of this situation.
Form: if + past perfect, ...would + have + past participle
Example: If she had studied, she would have passed the exam.
(but, really we know she didn't study and so she didn't pass)