In 2 Corinthians 5:21 we read, "God made him who had no sin to be sin for us, so that in him we might become the righteousness of God." Yet other verses tell us that Jesus was "without sin" (Hebrews 4:15; 1 Peter 3:18). How do we reconcile such verses?
To begin, let me emphasize that Christ as God is immutable (Hebrews 13:8; Malachi 3:6), and cannot change in His divine nature. In Hebrews 1:12 the Father says of Jesus, "You remain the same, and your years will never end."
Regarding Jesus being "made to be sin," Jesus was always without sin ACTUALLY, but He was made to be sin for us JUDICIALLY. That is, by His death on the cross, He paid the penalty for our sins and thereby canceled the debt of sin against us. So, while Jesus never committed a sin PERSONALLY, He was made to be sin for us SUBSTITUTIONALLY.
One must also keep in mind the Old Testament backdrop of the concept of substitution. The sacrificial victim had to be "without defect" (Leviticus 4:3, 23, 32). A hand would be laid on the unblemished sacrificial animal as a way of symbolizing a transfer of guilt (4:4, 24, 33). Note that the sacrificial animal did not thereby actually BECOME sinful by nature; rather, sin was IMPUTED to the animal and the animal acted as a sacrificial substitute. In like manner, Christ the Lamb of God was utterly unblemished (1 Peter 1:19), but our sin was imputed to Him and He was our sacrificial substitute on the cross of Calvary. Simply because our sin was imputed to Him does not mean He changed in nature. Christ was not sinful personally; He was made to be sin substitutionally.