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- How to say 'had been doing'
- había estado + gerundio
- Talk about prior ongoing actions
"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:
- How long something had been happening before a past moment — Había estado esperando una hora cuando llegó el autobús. (I had been waiting an hour when the bus came.)
- Explaining a past state or result — Estaba agotada porque había estado trabajando toda la noche. (She was exhausted because she had been working all night.)
- An ongoing activity interrupted or ended in the past — Habíamos estado hablando de ti justo antes de que llamaras. (We had been talking about you right before you called.)
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.
| Subject | había estado + gerund | Example |
|---|---|---|
| yo | había estado trabajando | Habí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 / usted | había estado durmiendo | Había estado durmiendo mal. — He had been sleeping badly. |
| nosotros / nosotras | habíamos estado viviendo | Habíamos estado viviendo en Lima. — We had been living in Lima. |
| vosotros / vosotras | habíais estado esperando | Habíais estado esperando mucho. — You had been waiting a long time. (Spain) |
| ellos / ellas / ustedes | habían estado hablando | Habí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:
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.
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
From the classroomCommon mistakes English speakers make
- 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.
- 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.
- 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.
- 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.
| Tense | Form | Focus | Example |
|---|---|---|---|
| Past perfect | había trabajado | Completed before then | Había trabajado allí antes. — I had worked there before. |
| Past perfect continuous | había estado trabajando | In progress up to then, duration | Habí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.


