Infinitivo compuesto: 'haber + participio'

When you say recuerdo haber estudiado eso — "I remember having studied that" — you are using one of Spanish's tidiest non-finite forms: the perfect infinitive, haber + past participle. It does in two words what a que-clause would do in five: it locates an action in a past prior to the main verb, all while keeping the construction infinitive. Once you have it, después de haber llegado, por haber dicho la verdad, sin haber dormido all open up as natural ways to compress information that would otherwise require a finite clause.

This page covers the form, the core contexts where Spanish demands it, and the subtle distinction between haber comido and comer that learners routinely get wrong.

The form

The perfect infinitive is the infinitive haber + the past participle of the main verb. The participle is always invariable — it never agrees with anything, because it is being used in a compound tense, not as an adjective.

Simple infinitivePerfect infinitiveTranslation
comerhaber comidoto have eaten
llegarhaber llegadoto have arrived
decirhaber dichoto have said
volverhaber vueltoto have returned
versehaberse vistoto have seen oneself

Clitic pronouns attach to haber: haberlo dicho, habérselo dicho, haberse caído. They never go between haber and the participle.

Te agradezco mucho el habernos invitado a tu casa el fin de semana pasado.

I'm very grateful that you invited us to your home last weekend.

💡
Three things to memorise together: haber stays an infinitive, the participle is invariable, and any clitic pronouns attach to haber (haberlo, habérmelo, habernos). Putting the clitic between haber and the participle (haber lo dicho) is the surest sign that the construction has been learnt from a translation rather than from real Spanish.

What the perfect infinitive does

The perfect infinitive marks anteriority — the action it names occurred before the time established by the main verb. Where the simple infinitive llegar is neutral as to time, haber llegado explicitly says that the arrival is already past at the moment we are describing.

Recuerdo haber estudiado eso en el instituto, pero no me acuerdo del autor.

I remember having studied that in secondary school, but I don't remember the author.

Recuerdo estudiar eso todos los días con mi padre.

I remember studying that every day with my father.

The first sentence places the studying in a single completed past episode; the second describes a repeated activity contemporaneous with the speaker's childhood.

Context 1: after verbs of mental retrospection

The clearest home of the perfect infinitive is after verbs that look back: recordar, negar, admitir, reconocer, confesar, lamentar, arrepentirse de, agradecer. With these, que + finite verb is also possible, but the perfect infinitive is more compact when the subject is the same.

Niego haber dicho semejante cosa en aquella reunión.

I deny having said any such thing in that meeting.

Lamenta no haber pedido perdón antes de que fuera demasiado tarde.

He regrets not having asked for forgiveness before it was too late.

Me arrepiento de haberle gritado a mi madre por una tontería.

I regret shouting at my mother over something silly.

Confieso haber leído tu diario; lo siento mucho.

I confess to having read your diary; I'm very sorry.

The subject of haber is understood as the same as the subject of the main verb. When the subjects differ, Spanish switches to que + finite verb: lamenta que le haya gritado a su madre ("she regrets that he shouted at his mother").

Context 2: after prepositions of sequence and cause

This is where the perfect infinitive earns its keep. Spanish prepositions take infinitives, never finite verbs — but to mark prior action, the infinitive must be compound. The four workhorses:

PrepositionMeaningExample
después de + haber + part.after having (done)después de haber llegado a casa
antes de + haber + part. (rare)before having (done) — counterfactualantes de haberlo terminado, ya estaba criticándolo
por + haber + part.because of having (done) — causalpor haber dicho la verdad
sin + haber + part.without having (done)sin haber dormido nada

Después de haber llegado al hotel, nos fuimos directamente a cenar.

After arriving at the hotel, we went straight out for dinner.

Le multaron por haber aparcado en doble fila durante más de dos horas.

They fined him for having parked in a double row for more than two hours.

No me puedo creer que hayas hecho el examen sin haber dormido nada.

I can't believe you took the exam without having slept at all.

Me dieron las gracias por haberles avisado de la avería con tiempo.

They thanked me for warning them about the breakdown in time.

When the events are simultaneous or unordered, the simple infinitive is enough: después de cenar (after dinner — generic), por trabajar tanto (from working so much — ongoing cause). Use the perfect infinitive when you want to highlight that one event is finished before the next begins.

Context 3: fixed and semi-fixed expressions

A handful of perfect-infinitive expressions have lexicalised. Recognise them as units, not as transparent compositions.

ExpressionMeaningRegister
de haberlo sabidohad I knowneveryday — high-frequency counterfactual
de haber + part.had (someone) done — counterfactualeveryday
por haber + part. (de + infinitive)for having (done) — irony or reproachcolloquial
gracias a haber + part.thanks to having (done)neutral
al haber + part.upon having (done) — formal causalwritten

De haberlo sabido, no habría venido en coche; el atasco ha sido espantoso.

Had I known, I wouldn't have come by car; the traffic jam has been awful.

Gracias a haberme avisado a tiempo, pude cancelar el billete sin penalización.

Thanks to your warning me in time, I was able to cancel the ticket without a penalty.

Al haber sido aprobada la moción por mayoría absoluta, el reglamento entra en vigor mañana.

The motion having been passed by absolute majority, the regulation comes into force tomorrow.

The de haber + participle construction is the everyday equivalent of si + pluperfect subjunctive in the counterfactual — and Spanish speakers in Spain use it constantly:

De haberlo sabido antes, habría hecho la maleta de otra manera.

Had I known earlier, I would have packed differently.

De no haber llegado tarde, habríamos pillado el tren de las ocho.

Had we not arrived late, we'd have caught the eight o'clock train.

This pattern is a counterpart to the si-clause, not a replacement; both are good Spanish. In speech, de haber sounds more compact and slightly more colloquial.

Reflexive verbs and clitic placement

When the verb is reflexive, se attaches to haber:

Después de haberse despedido de todos, salió de la fiesta sin decir nada más.

After saying goodbye to everyone, he left the party without saying anything else.

Por haberse confiado demasiado, perdió la final en el último minuto.

By having got overconfident, he lost the final at the last minute.

Direct- and indirect-object clitics work the same way:

Te pido perdón por no habértelo dicho antes.

I apologise for not having told you about it sooner.

Lamento mucho no haberos visto en la fiesta de Marta el sábado.

I really regret not having seen you all at Marta's party on Saturday.

Notice the accent that appears on habértelo: when two unstressed clitics attach, the stress of the now-quadrisyllabic word falls on the original ha- of haber, and Spanish spelling rules demand a written accent (habér-te-lo).

💡
The most common written error here is forgetting the accent on habérselo, habértelo, habérmelo. The infinitive haber is stressed on ha-, and the addition of two enclitics turns the form into a sobresdrújula, which always carries the written accent.

When not to use the perfect infinitive

The simple infinitive is enough when the action is generic, ongoing, or contemporaneous with the main verb:

Me gusta cocinar para mis amigos.

I like cooking for my friends.

Después de comer, siempre damos un paseo por el parque.

After lunch, we always go for a walk in the park.

Compare:

Después de haber comido tres platos, ya no podía con el postre.

After having eaten three courses, I couldn't manage dessert.

The first sentence describes a generic habit (post-lunch walk); the second describes a single completed event whose effect (fullness) is what the main clause comments on. If you can answer "is the action a one-off, completed event whose pastness matters?" with yes, reach for the perfect infinitive; if no, the simple infinitive is enough.

Register

The perfect infinitive is fully at home across registers in Spain. Después de haber llegado, por haber dicho, sin haber dormido are heard in conversation, written in journalism, and routine in formal prose. De haberlo sabido is a high-frequency colloquialism. The only contexts where it sounds bookish are the formal al haber + participle in writing.

💡
After thanking someone, English uses for + gerund ("thanks for telling me"); Spanish uses por + perfect infinitive ("gracias por habérmelo dicho"). The simple infinitive gracias por decírmelo is also good but less retrospective.

Common Mistakes

❌ Recuerdo haber estudiada esa novela en el instituto.

Incorrect — the participle in compound tenses is invariable. It must be 'estudiado' regardless of the gender of the object.

✅ Recuerdo haber estudiado esa novela en el instituto.

I remember having studied that novel in secondary school.

❌ Te agradezco por haberme invitado.

Non-standard — in careful Peninsular Spanish 'agradecer' takes the thing thanked for as a direct object, not as a 'por' phrase. RAE-style writing prefers 'te agradezco haberme invitado' or 'te doy las gracias por haberme invitado'.

✅ Te agradezco haberme invitado a tu casa.

I'm grateful to you for inviting me to your home.

❌ Después de haber comer, dimos un paseo.

Incorrect — 'haber' takes a past participle, not an infinitive. The participle of 'comer' is 'comido'.

✅ Después de haber comido, dimos un paseo.

After eating, we went for a walk.

❌ Le dieron un premio por haber le rescatado del río.

Incorrect — clitics attach directly to 'haber' as enclitics; they don't sit between 'haber' and the participle.

✅ Le dieron un premio por haberlo rescatado del río.

They gave him an award for having rescued him from the river.

❌ Lamento no habertelo dicho antes.

Incorrect — when two clitics attach to 'haber', the form becomes a sobresdrújula and needs a written accent: 'habértelo'.

✅ Lamento no habértelo dicho antes.

I regret not having told you about it sooner.

Key takeaways

  • Form: haber (infinitive) + past participle (invariable). Clitics attach to haber: haberlo, habérselo, habérmelo.
  • Meaning: prior action — the participle's event is finished before the main verb's reference time.
  • Four core contexts: after verbs of retrospection (recordar, lamentar, negar), after prepositions of sequence and cause (después de, por, sin), in fixed counterfactuals (de haber sabido), and in formal al haber + participle.
  • The participle is invariable in the perfect infinitive — agreement only happens in absolute constructions and adjectival uses, not in compound tenses.
  • The everyday de haber + participle (de haberlo sabido) is a high-frequency alternative to si + pluperfect subjunctive in counterfactuals.

Now practice Spanish

Reading grammar gets you part of the way. The exercises are where it sticks — free, no signup needed.

Start learning Spanish

Related Topics

  • Infinitivo después de preposiciónA2The iron rule of Spanish syntax: any preposition is followed by the infinitive, never the gerund — antes de comer, sin pensar, para estudiar, después de llegar.
  • Infinitivo después de verbos conjugadosA2When two verbs share a subject, the second one stays in the infinitive — quiero ir, puedo venir, suelo madrugar — never que, never a conjugated form.
  • Gerundio compuesto: habiendo + participioC1The compound gerund habiendo + past participle — how it marks priority rather than simultaneity, its formal/literary register, and the precise distinction from the simple gerund.
  • Construcciones absolutasC1Terminada la reunión, salimos. Estando enfermo, no fui. How Spanish uses non-finite clauses with their own subject to compress time, cause, and condition.
  • Formación del participio pasadoA2How to form the past participle in Spanish: -ar verbs take -ado, -er/-ir verbs take -ido, with 15 high-frequency irregulars (hecho, dicho, visto, escrito…) that you have to memorise. Includes the rules for invariability with haber and agreement with nouns.