いけないんだ

have to

→ いけない
phrase Common #7,059
have to Used after なきゃ or なくちゃ to express necessity or obligation. The ending んだ adds an explanatory tone.
JA: 今日は早く帰らなきゃいけないんだ。
EN: I have to go home early today.

本当はいけないんだから

I'm not really supposed to, you know.

— 紅の豚 (1992)

トムと一緒にボストンに行かなきゃいけないんだ。

I have to go to Boston with Tom.

だけど あんたが侮辱したのが いけないんだ

But you're the one who insulted me.

— グッドフェローズ (1990)

クミコちゃんがいけないんだよポニョの悪口言うからだよね

It’s your fault, Kumiko-chan. You said mean things about Ponyo.

— 崖の上のポニョ (2008)

でもさ、母を連れて行かなくてはいけないんだ。

But I have to take my mother with me.

テスト勉強やらなきゃいけないんだ。

I have to study for the test.

菊仙 君がいけないんだよ

Kikusen, it’s your fault.

— さらば、わが愛/覇王別姫 (1993)

暗くなる前に、この仕事を終わらせなきゃいけないんだ。

I have to finish this work before it gets dark.