そうなんだ

that's right

→ そう
phrase Uncommon #10,128
that's right Used to confirm or acknowledge information, often with a nuance of realization or “I see.” Depending on context, it can also mean “is that so?” in a casual question. The more polite form is そうなんです.
JA: A: 明日は休みなんだ。 B: そうなんだ。
EN: A: Tomorrow is a day off. B: I see.

実はそうなんだ

Actually, that's right.

— ほんとうのピノッキオ (2019)

そうなんだ

I see.

— ダイ・ハード (1988)

彼女はいつもそうなんだ

She's always like that.

そうなんだ

Oh, I see.

なぜそうなんだ

Why is that?

— ロード・オブ・ザ・リング/二つの塔 (2002)

そうなんだ

I see.

— レミーのおいしいレストラン (2007)

トムメアリーのことが好きなんだけど俺もそうなんだ

Tom likes Mary, and so do I.

そうなんだ何もない

Yeah, but there’s nothing.

— RRR (2022)

そうなんだ

Oh, I see!

— RRR (2022)

どこがそうなんだ

How so?

— 人生スイッチ (2014)

お姉ちゃん料理が得意じゃないし、私もそうなんだ

My older sister isn't good at cooking, and neither am I.