I answer that, Since punishment is measured in two ways, namely according to the degree of its severity, and according to its length of time, the measure of punishment corresponds to the measure of fault, as regards the degree of severity, so that the more grievously a person sins the more grievously is he punished: "As much as she hath glorified herself and lived in delicacies, so much torment and sorrow give ye to her" (Apoc. 18:7). The duration of the punishment does not, however, correspond with the duration of the fault, as Augustine says (De Civ. Dei xxi, 11), for adultery which is committed in a short space of time is not punished with a momentary penalty even according to human laws [*Cf. FS, Question [87], Article [3], ad 1]. But the duration of punishment regards the disposition of the sinner: for sometimes a person who commits an offense in a city is rendered by his very offense worthy of being cut off entirely from the fellowship of the citizens, either by perpetual exile or even by death: whereas sometimes he is not rendered worthy of being cut off entirely from the fellowship of the citizens. wherefore in order that he may become a fitting member of the State, his punishment is prolonged or curtailed, according as is expedient for his amendment, so that he may live in the city in a becoming and peaceful manner. So too, according to Divine justice, sin renders a person worthy to be altogether cut off from the fellowship of God's city, and this is the effect of every sin committed against charity, which is the bond uniting this same city together. Consequently, for mortal sin which is contrary to charity a person is expelled for ever from the fellowship of the saints and condemned to everlasting punishment, because as Augustine says (De Civ. Dei xxi, 11), "as men are cut off from this perishable city by the penalty of the first death, so are they excluded from that imperishable city by the punishment of the second death." That the punishment inflicted by the earthly state is not deemed everlasting is accidental, either because man endures not for ever, or because the state itself comes to an end. Wherefore if man lived for ever, the punishment of exile or slavery, which is pronounced by human law, would remain in him for ever. On the other hand, as regards those who sin in such a way as not to deserve to be entirely cut off from the fellowship of the saints, such as those who sin venially, their punishment will be so much the shorter or longer according as they are more or less fit to be cleansed, through sin clinging to them more or less: this is observed in the punishments of this world and of purgatory according to Divine justice.
We find also other reasons given by the saints why some are justly condemned to everlasting punishment for a temporal sin. One is because they sinned against an eternal good by despising eternal life. This is mentioned by Augustine (De Civ. Dei. xii, 12): "He is become worthy of eternal evil, who destroyed in himself a good which could be eternal." Another reason is because man sinned in his own eternity [*Cf. FS, Question [87], Article [3], ad 1]; wherefore Gregory says (Dial. iv), it belongs to the great justice of the judge that those should never cease to be punished, who in this life never ceased to desire sin. And if it be objected that some who sin mortally propose to amend their life at some time, and that these accordingly are seemingly not deserving of eternal punishment, it must be replied according to some that Gregory speaks of the will that is made manifest by the deed. For he who falls into mortal sin of his own will puts himself in a state whence he cannot be rescued, except God help him: wherefore from the very fact that he is willing to sin, he is willing to remain in sin for ever. For man is "a wind that goeth," namely to sin, "and returneth not by his own power" (Ps. 77:39). Thus if a man were to throw himself into a pit whence he could not get out without help, one might say that he wished to remain there for ever, whatever else he may have thought himself. Another and a better answer is that from the very fact that he commits a mortal sin, he places his end in a creature; and since the whole of life is directed to its end, it follows that for this very reason he directs the whole of his life to that sin, and is willing to remain in sin forever, if he could do so with impunity. This is what Gregory says on Job 41:23, "He shall esteem the deep as growing old" (Moral. xxxiv): "The wicked only put an end to sinning because their life came to an end: they would indeed have wished to live for ever, that they might continue in sin for ever for they desire rather to sin than to live." Still another reason may be given why the punishment of mortal sin is eternal: because thereby one offends God Who is infinite. Wherefore since punishment cannot be infinite in intensity, because the creature is incapable of an infinite quality, it must needs be infinite at least in duration. And again there is a fourth reason for the same: because guilt remains for ever, since it cannot be remitted without grace, and men cannot receive grace after death; nor should punishment cease so long as guilt remains.