Different factors can be used to determine how severe the punishment of a crime will be. In general, courts will follow the sentencing guidelines established by the state, the federal government, or preexisting precedent. Factors that affect the guidelines include severity of the crime, criminal history, and whether the crime was intentional or impulsive.