Verb or い-adjective plain form / な-adjective + な / Noun + な + んです (のです) ※ Past: 「〜たんです」
How to use it
This is used to explain a reason, or to check something when you see how the other person is. As in 「どうして休んだんですか」 and 「頭が痛かったんです」, it can be used in both questions and answers. If you use it just to state a fact, it sounds like a strong explanation and is unnatural. Use 「んです」 when speaking and 「のです」 when writing.
Examples
きのうは休みました。かぜをひいたんです。
I took yesterday off. I had caught a cold.
元気がありませんね。どうかしたんですか。
You don't look well. Is something the matter?
Practice
1. かばんが重そうですね。中に何が入っている( )か。
When you see how someone is and ask the reason, use 「〜んですか」. 「ものです」 and 「ことです」 do not fit the meaning here.
2. 「どうして毎日ここへ来るんですか。」「この店のコーヒーが( )んです。」
Change a な-adjective to the 「〜な」 form and add 「んです」. There is no form 「好きだんです」.
3. すみません、この漢字の読み方が分からない( )。教えてください。
When you explain your situation and ask a favour, use 「〜んです」. 「らしいです」 is used for things heard from others, so it is not used about yourself.
4. Put the words in the right order.
早く / きのうは / 帰ったんです / 痛かったので、 / 頭が
Show answer
きのうは頭が痛かったので、早く帰ったんです。 The form 「動詞の普通形+んです」 explains a reason.
5. Is 「はじめまして。わたしは山田と申すんです。」 used correctly?
Saying your name for the first time is not an explanation, so 「〜んです」 is not used. Say 「山田と申します」.