The men of A Doll's House are in many ways just as trapped by traditional gender roles as the women (Torvald Helmer being the chief example). The men must be providers. They must bear the burden of supporting the entire household. They must be the infallible kings of their respective castles. By the end of the play these traditional ideas are truly put to the test.
Torvald is just as much a prisoner of society's prescribed gender roles as Nora is.
At the end of the play, we are given hope that Torvald will reach beyond his society's concept of masculinity.