If I had studied medicine, I would be a doctor (C1 Grammar)

A mixed conditional joins two different times. For a past action whose result reaches into now, use if + had + the past participle, then would + the base verb: If I had studied medicine, I would be a doctor. To make it negative, use hadn't in the if-half and wouldn't in the result: If I hadn't left, I wouldn't be so tired now. For a question, move would to the front: Would you be a doctor if you had studied medicine? The if-half sits in the past; the result sits in the present.

A past action with a result that still holds

A lasting trait with a result in the past

Run it the other way for a lasting trait that shaped a past event: use if + were, then would have + the past participle: If I were more patient, I would have waited. Note the were — this formal if-half uses were for every subject (I, he, she, it). You will also hear and read was here ('if I was more patient'), and it is not an error, but were is the form formal writing and exams expect, so it is the one to produce. Make it negative with weren't and wouldn't have: If she weren't so cautious, she wouldn't have turned it down. For a question, move would to the front: Would she have waited if she were more patient? The if-half describes how someone generally is; the result sits in the past.

The formal version: drop "if" and invert

In formal or literary English you can drop "if" and invert instead. Put had before the subject for the past-time half (Had she accepted the offer, she would live here), or were before the subject for a present trait (Were he more patient, he would have waited). For a negative, keep not after the subject: Had I not left, I would still be there. The meaning is exactly the same as the "if"-version — only the register changes. It sounds more formal and emphatic, so reach for it in essays, speeches, and polished writing, and keep the plain "if"-version for everyday speech.