The allotment system (Swedish: indelningsverket; Finnish: ruotujakolaitos) was a system used in Sweden for keeping a trained army at all times. This system came into use in around 1640, and was replaced in the early 1900s by the Swedish Armed Forces conscription system. Two different allotment systems have been in use in Sweden; they are the old allotment system (äldre indelningsverket) and the new allotment system (yngre indelningsverket), the latter often referred to as just "the allotment system". The soldiers who were part of these systems were known as "croft soldiers" (indelta soldater, the Swedish term, does not have the same meaning) due to the small crofts allotted to them.
Originally, the allotment system was a name for a system used to pay servants of the state, like officers and clergy. It was introduced because of an often felt shortage of money, and the allotment system tried to solve this by localizing taxes; meaning that payment consisted of an individual's right to collect certain taxes. Later on it referred to an organization created to provide soldiers to the armed forces, properly known as det ständiga knektehållet (literally "the permanent soldier household"). The reason for this development of the term is that a large part of the allotment system was used to support det ständiga knektehållet.
After the Swedish secession from the Kalmar Union in 1523, the infantry of the Swedish Army consisted of conscripted soldiers and enlisted mercenaries, both of whom would be called up in wartime only. The units were disbanded in peacetime to reduce costs, and only a few garrison units were present in towns and fortresses. This made it impossible to quickly mobilize a trained army. At the same time, land tax exemption (frälse) was given to those who equipped horsemen for cavalry service, according to the Decree of Alsnö. Coastal defence was provided by several skeppslag (literally "ship teams"), a number of farms located in a coastal district that had to furnish both ships and shipmen for service. After the birth of the Swedish Navy in 1522, the system for recruiting shipmen was changed to rely on forced conscription.