Dostoevsky's letter to Katkov reveals his immediate inspiration, to which he remained faithful even after his original plan evolved into a much more ambitious creation: a desire to counteract what he regarded as nefarious consequences arising from the doctrines of Russian nihilism. In the novel, Dostoevsky pinpointed the dangers of both utilitarianism and rationalism, the main ideas of which inspired the radicals, continuing a fierce criticism he had already started with his Notes from Underground. A Slavophile religious believer, Dostoevsky utilized the characters, dialogue and narrative in Crime and Punishment to articulate an argument against westernizing ideas in general. He thus attacked a peculiar Russian blend of French utopian socialism and Benthamite utilitarianism, which had led to what revolutionaries, such as Nikolai Chernyshevsky, called "rational egoism".
The radicals refused, however, to recognize themselves in the novel's pages (Dimitri Pisarev ridiculed the notion that Raskolnikov's ideas could be identified with those of the radicals of his time), since Dostoevsky pursued nihilistic ideas to their most extreme consequences. The aim of these ideas was altruistic and humanitarian, but these aims were to be achieved by relying on reason and suppressing entirely the spontaneous outflow of Christian pity and compassion. Chernyshevsky's utilitarian ethic proposed that thought and will in Man were subject to the laws of physical science. Dostoevsky believed that such ideas limited man to a product of physics, chemistry and biology, negating spontaneous emotional responses. In its latest variety of Bazarovism, Russian nihilism encouraged the creation of an élite of superior individuals to whom the hopes of the future were to be entrusted.
Raskolnikov exemplifies all the potentially disastrous hazards contained in such an ideal. Frank notes that "the moral-psychological traits of his character incorporate this antinomy between instinctive kindness, sympathy, and pity on the one hand and, on the other, a proud and idealistic egoism that has become perverted into a contemptuous disdain for the submissive herd". Raskolnikov's inner conflict in the opening section of the novel results in a utilitarian-altruistic justification for the proposed crime: why not kill a wretched and "useless" old moneylender to alleviate the human misery? Dostoevsky wants to show that this utilitarian type of reasoning and its conclusions had become widespread and commonplace; they were by no means the solitary invention of Raskolnikov's tormented and disordered mind. Such radical and utilitarian ideas act to reinforce the innate egoism of Raskolnikov's character and, likewise, contempt for the lower qualities in Man and for His ideals. He even becomes fascinated with the majestic image of a Napoleonic personality who, in the interests of a higher social good, believes that he possesses a moral right to kill. Indeed, his "Napoleon-like" plan drags him to a well-calculated murder, the ultimate conclusion of his self-deception with utilitarianism.
In his depiction of the Petersburg background, Dostoevsky accentuates the squalor and human wretchedness that pass before Raskolnikov's eyes. He also uses Raskolnikov's encounter with Marmeladov to present both the heartlessness of Raskolnikov's convictions and the alternative set of values to be set against them. Dostoevsky believes that the "freedom" propounded by the aforementioned ideas is a dreadful freedom "that is contained by no values, because it is before values". The product of this "freedom", Raskolnikov, is in perpetual revolt against society, himself, and God. He thinks that he is self-sufficient and self-contained, but at the end "his boundless self-confidence must disappear in the face of what is greater than himself, and his self-fabricated justification must humble itself before the higher justice of God". Dostoevsky calls for the regeneration and renewal of the "sick" Russian society through the re-discovering of its country, its religion, and its roots.