You already know the past perfect (I had finished — one past event before another) and the present perfect continuous (I've been waiting — duration up to now). The past perfect continuous combines their ideas: an activity that was in progress for some time before a point in the past.

  • I*'d been waiting** for an hour when the bus finally came.*
  • She was tired because she*'d been working** all night.*
  • They*'d been living** in Rome for a year before they moved to Milan.*

The form is had + been + verb-ing.

Quick form: subject + had + been + verb**-ing** → I*'d been working**. She hadn't been sleeping. Had you been waiting long?*

How to form it

The three parts always come in this order — and had never changes, whatever the subject:

Subject had been -ing form
I / you / he / she / it / we / they had been working, waiting, studying…
  • I had been studying for hours before the exam started.I*'d been studying** for hours before the exam started.*
  • He had been driving all day when the accident happened.
  • We had been planning the trip for months.

Because had is the same for every subject, there's no was / were split to worry about here — unlike the past continuous. The -ing form follows the usual spelling rules (drop a silent -e: make → making; double a short stressed final consonant: run → running) — the same rules as for the past continuous.

The core use: duration up to a past point

This is the main B2 use — saying how long something had been going on before another past moment:

  • By 6 p.m., we*'d been travelling** for ten hours.*
  • How long had they been dating before they got married?
  • She*'d been feeling** ill for a few days before she saw a doctor.*

English uses for (a length of time) or since (a starting point), just as with the present perfect continuous — but the reference point is a moment in the past, not now:

  • He*'d been working** there for five years when the company closed.*
  • They had been waiting since dawn when the gates finally opened.

Explaining a past situation through its recent cause

Just as the present perfect continuous explains a present situation, the past perfect continuous explains a past one — the activity had recently been happening, whether it had just stopped or was still continuing, and its effects were visible at that past moment:

  • Her clothes were wet because she*'d been swimming**.*
  • He was out of breath — he*'d been running**.*
  • The kitchen was a mess. Someone had been cooking.

You're standing at a point in the past and looking back at what had recently caused it — the same logic as I've been working, that's why I'm tired, just shifted one step back in time.

Past perfect continuous vs past perfect simple

Both look back from a point in the past, and they often shift the emphasis in a similar way to the present perfect simple vs continuous:

Past perfect simple Past perfect continuous
Typical focus result, count, or completed event activity in progress or its duration
Example She had written three emails before lunch. (three — the count matters) She*'d been writing** emails all morning.* (the ongoing activity matters)
Example He had finished the report when I called. (it was done) He*'d been writing** the report when I called.* (may not have been done)

A useful shortcut: if you're counting a result or a completed thing, reach for the simple; if you want to stress the duration or the ongoing nature of the activity, reach for the continuous:

  • I*'d read** four chapters by the time she arrived.* (number finished = result)
  • I*'d been reading** for an hour by the time she arrived.* (how long = duration)

The past perfect simple is also common with duration when the whole period is presented as a completed fact, especially with long-term situations such as live, work, study, or teach: I had worked there for five years before I left. The continuous puts more emphasis on the activity being ongoing: I'd been working there for five years and still didn't feel settled.

Some verbs work naturally in both with only a small shift: I'd lived there for years (simple — common for long-term situations) vs I'd been living there for years (continuous — slight emphasis on the ongoing activity). Both are correct.

Past perfect continuous vs past continuous

These two answer different questions. The past continuous describes what was happening at one specific past moment; the past perfect continuous describes an activity leading up to a later past moment:

  • At 8 p.m., I was cooking dinner. (in progress right then — past continuous)
  • By the time she arrived, I*'d been cooking** for an hour.* (duration before that later moment — past perfect continuous)

State meanings usually use the simple form

Verbs that describe states rather than activities — know, believe, understand, like, love, need, own, have (possession) — usually keep their simple form for duration, even about the past:

  • I'd been knowing him for years before I found out. → ✅ I'd known him for years before I found out.
  • She'd been having the car since 2018. (possession meaning) → ✅ She'd had the car since 2018.

As always, some of these can appear in continuous forms with a temporary or action-like meaning (He'd been having second thoughts), but not with their core state meanings.

Negatives

In negatives, not goes between had and been — usually contracted to hadn't:

  • I hadn't been sleeping well before the trip.
  • They hadn't been speaking for months when they finally made up.

Questions

In questions, had moves in front of the subject:

  • Had you been waiting long?
  • Had she been feeling unwell before the appointment?
  • How long had they been living there?

Short answers: Yes, I had. / No, I hadn't.

Common mistakes

  • I had been wait for an hour. → ✅ I had been waiting for an hour. (been is followed by the -ing form)
  • She had been been working all day. → ✅ She had been working all day. (only one been)
  • How long you had been waiting? → ✅ How long had you been waiting? (had moves before the subject in questions)
  • We had been living there since three years. → ✅ We had been living there for three years. (three years is a duration → for)
  • I'd been knowing her since school. → ✅ I'd known her since school. (state verb → past perfect simple)
  • He had been finished the report when I arrived. (mixing the two forms) → ✅ He had finished the report when I arrived. (result → simple) or He*'d been writing** the report when I arrived.* (ongoing → continuous) — but not both at once.

Quick check

Past perfect simple or continuous?

  1. By the time the ambulance arrived, he ____ (lie) on the ground for ten minutes.
  2. She ____ (write) three chapters before her laptop broke.
  3. ____ you ____ (wait) long when the taxi finally showed up?
  4. They were exhausted because they ____ (hike) since sunrise.
  5. I ____ (know) him for years before he told me his real name.
Show answers
  1. had been lying (duration up to that moment)
  2. had written (count of chapters = result)
  3. Had you been waiting (duration before the taxi arrived)
  4. had been hiking (ongoing activity explains the tiredness)
  5. had known (state verb → simple, even for duration)

Key takeaways

  • Past perfect continuous = had + been + verb-inghad never changes, whatever the subject.
  • Use it for the duration of an activity before a past point (for / since), or to explain a past situation through its recent cause (she was wet — she'd been swimming).
  • Against the past perfect simple: simple = result, count, or completed event; continuous = ongoing activity or its duration.
  • Against the past continuous: past continuous = happening at one specific past moment; past perfect continuous = duration leading up to a later past moment.
  • State verbs (know, have, own, like, etc.) keep their simple form for duration, even in the past: I'd known him for years.
  • Negatives: hadn't been + -ing. Questions: Had + subject + been + -ing?