|Part of a series on|
"From each according to his ability, to each according to his needs" is a slogan popularised by Karl Marx in his 1875 Critique of the Gotha Program. The principle refers to free access to and distribution of goods, capital and services. In the Marxist view, such an arrangement will be made possible by the abundance of goods and services that a developed communist system will be capable to produce; the idea is that, with the full development of socialism and unfettered productive forces, there will be enough to satisfy everyone's needs.
The complete paragraph containing Marx's statement of the creed in the Critique of the Gotha Program is as follows:
In a higher phase of communist society, after the enslaving subordination of the individual to the division of labor, and therewith also the antithesis between mental and physical labor, has vanished; after labor has become not only a means of life but life's prime want; after the productive forces have also increased with the all-around development of the individual, and all the springs of co-operative wealth flow more abundantly—only then can the narrow horizon of bourgeois right be crossed in its entirety and society inscribe on its banners: From each according to his ability, to each according to his needs!
Although Marx is popularly thought of as the originator of the phrase, the slogan was common within the socialist movement. For example, it was used by August Becker in 1844 and Louis Blanc in 1851. The origin of this phrasing has also been attributed to the French utopian Étienne-Gabriel Morelly, who proposed in his 1755 Code of Nature "Sacred and Fundamental Laws that would tear out the roots of vice and of all the evils of a society", including:
I. Nothing in society will belong to anyone, either as a personal possession or as capital goods, except the things for which the person has immediate use, for either his needs, his pleasures, or his daily work.
II. Every citizen will be a public man, sustained by, supported by, and occupied at the public expense.
III. Every citizen will make his particular contribution to the activities of the community according to his capacity, his talent and his age; it is on this basis that his duties will be determined, in conformity with the distributive laws.
A similar phrase can be found in the Guilford Covenant in 1639:
We whose names are here underwritten, intending by God's gracious permission to plant ourselves in New England, and if it may be, in the southerly part about Quinnipiack, do faithfully promise each, for ourselves and our families and those that belong to us, that we will, the Lord assisting us, sit down and join ourselves together in one entire plantation, and be helpful each to the other in any common work, according to every man's ability, and as need shall require, and we promise not to desert or leave each other or the plantation, but with the consent of the rest, or the greater part of the company who have entered into this engagement.
Some scholars trace the origin of the phrase to the New Testament. In Acts of the Apostles the lifestyle of the community of believers in Jerusalem is described as communal (without individual possession), and uses the phrase "distribution was made unto every man according as he had need" (διεδίδετο δὲ ἑκάστῳ καθότι ἄν τις χρείαν εἶχεν):
Acts 4:32–35: 32 And the multitude of them that believed were of one heart and of one soul: neither said any of them that ought of the things which he possessed was his own; but they had all things common. 33 And with great power gave the apostles witness of the resurrection of the Lord Jesus: and great grace was upon them all. 34 Neither was there any among them that lacked: for as many as were possessors of lands or houses sold them, and brought the prices of the things that were sold, 35 And laid them down at the apostles' feet: and distribution was made unto every man according as he had need.
However, other scholars disagree with this, and claim that the phrase 'from each according to their abilities, to each according to their needs' has a non-religious origin, in 'the Roman legal concept of obligation in solidum'  The Roman legal concept of obligation in solidum is that 'everyone assumes responsibility for anyone who cannot pay his debt, and he is conversely responsible for everyone else'.  James Furner then argues:
'If x = a disadvantage, and y = action to redress that disadvantage, the principle of solidarity is: if any member of a group acquires x, each member has a duty to perform y (if they can assist). All we then need to add, to get to the fundamental principle of developed communism, is to assume that non-satisfaction of a need is a disadvantage. The corresponding principle of solidarity in respect of need says: if any member of society has an unsatisfied need, each member has a duty to produce its object (if they can). But that is precisely what the principle ‘from each according to their abilities, to each according to their needs!’ dictates. In Marx’s vision, the basic principle of developed communism is a principle of solidarity in respect of need.' 
Marx delineated the specific conditions under which such a creed would be applicable—a society where technology and social organization had substantially eliminated the need for physical labor in the production of things, where "labor has become not only a means of life but life's prime want". Marx explained his belief that, in such a society, each person would be motivated to work for the good of society despite the absence of a social mechanism compelling them to work, because work would have become a pleasurable and creative activity. Marx intended the initial part of his slogan, "from each according to his ability" to suggest not merely that each person should work as hard as they can, but that each person should best develop their particular talents.
Claiming themselves to be at a "lower stage of communism" (i.e. "socialism", in line with Marx's terminology), the Soviet Union adapted the formula as: "From each according to his ability, to each according to his work (labour investment)".
While liberation theology has sought to interpret the Christian call for justice in a way that is in harmony with this Marxist dictum, many have noted that Jesus' teaching in the Parable of the Talents (Matthew 25:14–30) affirms only "TO each according to his ability" (Matt. 25:15), and not "FROM each according to his ability".[unreliable source?]
In Ayn Rand's 1957 novel Atlas Shrugged, a large and profitable motor company adopts this slogan as its method for determining employee compensation. The system quickly falls prey to corruption and greed, forcing the most capable employees to work overtime in order to satisfy the needs of the least competent and funnel money to the owners. As a result, the company goes bankrupt within four years.
Communism would mean free distribution of goods and services. The communist slogan, 'From each according to his ability, to each according to his needs' (as opposed to 'work') would then rule