We report the results of an ab initio study of N and P dopants in SiC. We find that while N substitutes most favorably at a C lattice site, P does so preferably at a Si site, except in n-doping and Si-rich 3C-SiC. Furthermore, we consider a series of dopant complexes that could form in high-dose implantation, in order to investigate the dopant activation behavior in this limit. We find that all N complexes considered lead to passivation through the formation of a deep level. For P, the most stable aggregate is still an active dopant, while passivation is only observed for complexes with a higher formation energy. We discuss how these results could help in the understanding of the observed experimental high-dose doping and codoping behavior of these species.