According to the Catholic Church, can one be a heretic and still obtain salvation? According to the Catholic Church, can one be a heretic and still obtain salvation? Are there different kinds of heresy that merit different answers?
Heresy is distinguished as follows:

Material heresy

occult (hidden)e.g., privately thinking there are 4 Divine Persons
publice.g., preaching that there are 4 Divine Persons


Formal heresypertinacious adherence to heresy even after corrected by an ecclesiastical superior or tried for the crime of heresy in a canonical trial*e.g., continuing to preach that there are 4 Divine Persons even after having been censured (cf. the theological censures/notes at the end of this answer) or excommunicated*cf. ch. 9 &quot;Proving the Crime of Heresy&quot;, pp. 229ff. (PDF pp. 242ff.), of True or False Pope

If one is invincibly ignorant that he holds a material heresy, he can possibly be saved; however, formal heretics cannot be saved, especially if their heresy is against the four truths absolutely necessary to believe for salvation—viz., that

&quot;he [God] is&quot;, i.e., that God exists (Heb. 11:6)
God &quot;is a rewarder to them that seek him.&quot; (Heb. 11:6)
the Second Person of the Trinity took on a human nature (Incarnation)
God is Three Divine Persons in one God (Trinity)

Note: There is unanimous consent among Catholic theologians that truths #1 and #2 are absolutely necessary to be explicitly believed in order to be saved, but not all theologians (St. Thomas Aquinas, St. Alphonsus Liguori, et al. excepted) think that explicit belief in truths #3 and #4 is necessary; cf. True or False Pope p. 113 // PDF p. 128.source