Lesson 14 of 33 · Past tenses · B2

Past perfect continuous in Spanish: había estado + gerund explained

4:06 video·5 min read·Updated September 10, 2026·By Profe Fer
Key takeaway

The past perfect continuous in Spanish is formed with había (the imperfect of haber) + estado + a gerund (-ando / -iendo): había estado trabajando means "I had been working". Use it for an action that had been going on for a while up to a moment in the past. Native speakers often prefer llevaba + time + gerund instead.

había + estado + gerund (-ando / -iendo) = had been doing
In the video you'll learn

"I had been waiting for an hour when the bus finally came." English packs a lot into "had been waiting": an action in progress, stretching up to a moment in the past. The past perfect continuous in Spanish says the same thing with había estado esperando — this guide shows you how to build it, when to use it, and the shorter llevaba alternative native speakers often prefer.

This is the last of the Spanish past tenses and the easiest to form: if you know había and the gerund, you already have every piece.

The big pictureWhen to use the past perfect continuous in Spanish

The past perfect continuous (el pluscuamperfecto continuo) describes an action that had been going on for a while up to a point in the past. It stresses duration, not completion. Use it for:

Notice that every sentence has two parts: the long, ongoing action, and a shorter past event or state that gives it a stopping point. No second moment in the past? You need a different tense.

The formulaHow to form it: había estado + gerundio

Three pieces in a fixed order: había (the imperfect of haber), the frozen participle estado, and the gerund of the main verb — -ando for -ar verbs, -iendo for -er and -ir verbs.

Subjecthabía estado + gerundExample
yohabía estado trabajandoHabía estado trabajando todo el día. — I had been working all day.
túhabías estado estudiando¿Habías estado estudiando? — Had you been studying?
él / ella / ustedhabía estado durmiendoHabía estado durmiendo mal. — He had been sleeping badly.
nosotros / nosotrashabíamos estado viviendoHabíamos estado viviendo en Lima. — We had been living in Lima.
vosotros / vosotrashabíais estado esperandoHabíais estado esperando mucho. — You had been waiting a long time. (Spain)
ellos / ellas / ustedeshabían estado hablandoHabían estado hablando de mí. — They had been talking about me.

Only había changes with the subject; estado is frozen. Watch the gerund spelling changes: leer → leyendo, dormir → durmiendo, decir → diciendo.

The alternative natives love: llevaba + gerund

When the sentence says how long, Spanish speakers usually skip the three-verb construction and use llevar in the imperfect + time + gerund:

Había estado esperando dos horas cuando por fin me llamaron.
I had been waiting for two hours when they finally called me.
Full past perfect continuous
Llevaba dos horas esperando cuando por fin me llamaron.
I had been waiting for two hours when they finally called me.
llevaba + time + gerund — same meaning, more natural

A third option is hacía + time + que + imperfect: Hacía dos horas que esperaba. All three are correct; my guide to how long in Spanish lays them out side by side.

Profe Fer's tip

Use había estado + gerund to stress the activity itself — "she had been working" — and llevaba + gerund when the point is the amount of time. In conversation the second usually wins. Learn both: one to understand, one to sound natural.

In the wildThe past perfect continuous in real Spanish

Cuando llegó el taxi, habíamos estado esperando bajo la lluvia veinte minutos.
When the taxi arrived, we had been waiting in the rain for twenty minutes.
Duration up to a past event (llegó)
Me dolía la cabeza porque había estado mirando la pantalla todo el día.
My head hurt because I had been looking at the screen all day.
Explaining a past state → past perfect continuous
El equipo había estado trabajando en el proyecto seis meses cuando lo cancelaron.
The team had been working on the project for six months when they canceled it.
Long effort, abrupt ending → habían/había estado + gerund
Mi hija llevaba un año estudiando chino cuando decidió cambiar a español.
My daughter had been studying Chinese for a year when she decided to switch to Spanish.
llevaba + time + gerund in a family story

From the classroomCommon mistakes English speakers make

  1. Turning estado into a gerund. Había estando trabajando is the English "had been" leaking in. The middle word is always the participle: había estado trabajando.
  2. Using estaba instead of había estado. Estaba trabajando is "I was working," a snapshot. Había estado trabajando is "I had been working," a stretch of time before a past moment.
  3. Using it for a single completed action. Buying a ticket is one act, not a process: había comprado el billete, not había estado comprando. Reserve the continuous form for activities with duration.
  4. Using it with verbs of state. Just as English avoids "had been knowing," Spanish avoids había estado sabiendo. With saber, tener, querer and similar verbs, use the imperfect (sabía, tenía) or the plain past perfect.

The big decisionPast perfect continuous vs past perfect

Both tenses go "before the past." The plain Spanish past perfect reports that something was completed before a moment; the continuous form says something had been in progress up to that moment.

TenseFormFocusExample
Past perfecthabía trabajadoCompleted before thenHabía trabajado allí antes. — I had worked there before.
Past perfect continuoushabía estado trabajandoIn progress up to then, durationHabía estado trabajando allí tres años. — I had been working there for three years.

With a duration (tres años, toda la noche), the continuous form is natural; for a finished fact, the plain past perfect wins.

If you know the present perfect continuous in Spanish — he estado trabajando (I have been working) — you can see the whole system: he estado anchors to now, había estado anchors to a past moment. That parallel runs through every tense in my overview of the Spanish past tenses.

PracticeQuick quiz: past perfect continuous spanish

Six questions from the lesson. Answer in your head, then open to check.

1. Formula for the past perfect continuous:haber (present) + gerundhaber (imperfect) + estado + gerundioestar (imperfect) + gerundhaber (future) + gerund
haber (imperfect) + estado + gerundio
2. 'I had been studying' =Yo estaba estudiandoYo había estudiadoYo había estado estudiandoYo he estado estudiando
Yo había estado estudiando
3. 'They had been working' =Ellos han estado trabajandoEllos estaban trabajandoEllos habían trabajadoEllos habían estado trabajando
Ellos habían estado trabajando
4. Which gerund is correct?hacedohablandovividandocomado
hablando
5. The past perfect continuous is used when:A past action happened before nowAn action started and continues nowAn action had begun and continued until another past eventA future action will continue
An action had begun and continued until another past event
6. 'She had been reading for two hours' =Ella había leído por dos horasElla ha estado leyendo por dos horasElla había estado leyendo por dos horasElla estuvo leyendo por dos horas
Ella había estado leyendo por dos horas

Common questionsFAQ: past perfect continuous spanish

How do you say 'had been doing' in Spanish?
With había estado plus a gerund: había estado trabajando (I had been working), habían estado esperando (they had been waiting). Conjugate only haber in the imperfect (había, habías, había, habíamos, habíais, habían); estado never changes, and the gerund ends in -ando for -ar verbs and -iendo for -er and -ir verbs. When the sentence says how long, Spanish speakers often prefer llevaba + time + gerund.
What is the difference between había trabajado and había estado trabajando?
Había trabajado (past perfect) says the work was completed before a past moment: I had worked there before. Había estado trabajando (past perfect continuous) stresses that the work was in progress and had a duration up to that moment: I had been working there for three years when I quit. If there is a length of time or an emphasis on ongoing effort, choose the continuous form.
What is the difference between estaba trabajando and había estado trabajando?
Estaba trabajando is the imperfect progressive, a snapshot of what was happening at a past moment: I was working when you called. Había estado trabajando is the past perfect continuous: I had been working for a while before that moment, and the focus is on the stretch of time leading up to it. English makes the same distinction between 'was working' and 'had been working'.
How do you say 'I had been waiting for two hours' in Spanish?
Three natural options. The full past perfect continuous: Había estado esperando dos horas. The llevar construction, which is the most common in conversation: Llevaba dos horas esperando. And the hacer construction: Hacía dos horas que esperaba. All three are correct; llevaba + time + gerund is the one you will hear most from native speakers.
Is the past perfect continuous common in spoken Spanish?
It exists and is perfectly correct, but it is less frequent than in English because Spanish has lighter alternatives. For duration, speakers reach for llevaba + gerund or hacía + que + imperfect. For a simple background action, the imperfect (trabajaba) or the imperfect progressive (estaba trabajando) often does the job. Use había estado + gerund when you want to stress a prolonged activity before a past event.
Free on YouTube

Liked this lesson? The next one is free too

Every lesson on this site is a free video on Profe Fer's channel. Subscribe so the next one lands in your feed.

Watch nextKeep going in course order