--- title: "Payroll Formula Examples" slug: "payroll-formula-examples" updated: 2023-12-17T02:06:29Z published: 2023-12-17T02:06:29Z canonical: "www.procaresupport.com/payroll-formula-examples" --- > ## Documentation Index > Fetch the complete documentation index at: https://www.procaresupport.com/llms.txt > Use this file to discover all available pages before exploring further. # Payroll Formula Examples Each “general” withholding you create for things like health insurance, retirement plans, employee child care and local taxes requires a [Payroll Formula](/procare-desktop/docs/payroll-formula-examples) to determine the amount to withhold. This article explains how to use variables and the syntax for entering the formula. You may also [Download & Import](/procare-desktop/docs/download-general-withholding-formulas-child-care-health-etc) pre-made general withholdings rather than creating them from scratch. [Embedded content](https://www.youtube.com/embed/X7Zz-VXLMeg) ## Getting There Follow the steps to create a new withholding in the Payroll Formulas article. Then use the examples below as ideas for how the formula may be written using the [*Payroll Formula Builder*.](/procare-desktop/docs/payroll-formula-builder) You may also be interested in an explanation of preset Variables & Functions. ## Formula Examples Once the formula is set up be sure to assign any variables (like an amount or percentage) to the Employee Withholdings screen of each person. **Example 1: Withhold a Flat Amount** This is often useful for items like health insurance that have a set amount to withhold per paycheck. The amount can be different for each employee. You’ll use a single variable. ![image](https://s3.amazonaws.com/cdn.procaresoftware.com/pdfs/Support+Site+Images/Desktop/Payroll/PayrollFormulaExamples_1202_1.jpg) The formula just references the variable. ![image](https://s3.amazonaws.com/cdn.procaresoftware.com/pdfs/Support+Site+Images/Desktop/Payroll/PayrollFormulaExamples_1202_2.jpg) **Example 2: Withhold a Percentage or Amount** For something like a retirement plan an employee may elect to have a percentage of their gross pay withheld or a fixed amount per check. You’ll use two variables. Select the “Money” or “Percent” *Mask* as appropriate. ![image](https://s3.amazonaws.com/cdn.procaresoftware.com/pdfs/Support+Site+Images/Desktop/Payroll/PayrollFormulaExamples_1202_3.jpg) The formula could then choose whichever would withhold more (the percentage or the fixed amount). ![image](https://s3.amazonaws.com/cdn.procaresoftware.com/pdfs/Support+Site+Images/Desktop/Payroll/PayrollFormulaExamples_1202_4.jpg) **Example 3: Wage Base** Some withholdings, including things like SDI (state disability insurance), may require a wage base. This means the amount is withheld up to a certain level of earnings for the year (the wage base) and once a person had earned more than that the withholding no longer applies. You may not need any new variables, instead you’ll use built-in variables like (*gross*) and functions like *YTD[gross]*. Often, this type of withholding a fixed percentage built into the formula. Once a person exceeds the wage base no more is withheld. ![image](https://s3.amazonaws.com/cdn.procaresoftware.com/pdfs/Support+Site+Images/Desktop/Payroll/PayrollFormulaExamples_1202_5.jpg)