Basic pay is determined by rank and length of service, and is set in law in a pay table. All service members get at least one raise each year that is approved by Congress. Service members also get automatic raises when they are promoted to a higher rank, as well as longevity raises for time in service within one rank.