Breakdown of Wenn ich das früher gewusst hätte, hätte ich dir sofort geschrieben.
ich
I
haben
to have
dir
you; (informal singular, dative)
schreiben
to write
Questions & Answers about Wenn ich das früher gewusst hätte, hätte ich dir sofort geschrieben.
Why is hätte used twice? What tense/mood is this?
It’s a past counterfactual (irrealis of the past): “If I had known earlier, I would have written (then).” German forms this with Konjunktiv II + past participle in both clauses: hätte gewusst, hätte geschrieben. Both wissen and schreiben use haben (not sein) as their auxiliary, so it’s hätte, not wäre.
Can I use würde instead of hätte?
For a past result, standard German prefers hätte/ wäre + Partizip II: … hätte ich dir sofort geschrieben.
Using würde … geschrieben haben is possible but clunky and often discouraged. Use würde + infinitive for a present/future result: Wenn ich das früher gewusst hätte, würde ich dir jetzt schreiben.
Why not wüsste?
wüsste expresses an unreal present: Wenn ich das wüsste, würde ich dir schreiben (“If I knew now…”). Here we need an unreal past, so gewusst hätte is required.
Why is it gewusst hätte (participle before auxiliary) in the wenn-clause?
In subordinate clauses, the verb complex goes to the end, and non‑finite forms precede the finite verb: … das früher gewusst hätte. In the main clause, the finite verb must be in second position, so you get hätte ich … geschrieben, with geschrieben at the very end.