Used to look back fondly on things one used to do habitually in the past. It carries a nostalgic, reminiscing tone — 'I used to...; we would often...' The speaker recalls a repeated past behavior with emotion, not just stating a fact.
[Verb た-form] + ものだ / ものだった
子供のころ、よくこの川で泳いだものだ。
Kodomo no koro, yoku kono kawa de oyoida mono da.
As a child, I used to swim in this river a lot.
泳いだ (past of 泳ぐ) + ものだ recalls a fond habitual past action
学生時代は、夜遅くまで友達と語り合ったものだ。
Gakusei jidai wa, yoru osoku made tomodachi to katariatta mono da.
In my student days, we would talk with friends late into the night.
語り合った + ものだ expresses nostalgic recollection of a routine
昔はこの辺りも静かだったものだ。
Mukashi wa kono atari mo shizuka datta mono da.
This area used to be so quiet back in the day.
だった + ものだ reminisces about a past state with feeling
• Often paired with よく ('often') and time markers like 昔 or 子供のころ. • Expresses nostalgia; not just any past fact — there is emotional coloring. • Register: neutral; common in reflective storytelling.
The JLPT rarely asks whether you recognise a pattern — it asks which of several similar patterns fits. These are the ones ~たものだ is tested against.
ていた simply reports a past ongoing/habitual state; たものだ adds nostalgic emotion and the sense of 'those days are gone.'
Non-past ものだ states general truths or moral 'should'; the past たものだ specifically means nostalgic reminiscence.
Study Japanese grammar on LenGaki

Get the Android app
The app adds offline study, home-screen widgets, stroke-order tracing, speaking practice with pronunciation scoring, and an AI tutor that answers questions in context — none of which fits in a browser tab.