To find the scale factor for dilating a square from a side length of 6 units to a side length of 18 units, you can use the formula for scale factor:
\[ \text{Scale Factor} = \frac{\text{New Length}}{\text{Original Length}} \]
In this case, the original length is 6 units and the new length is 18 units. Plugging in these values:
\[ \text{Scale Factor} = \frac{18}{6} = 3 \]
Thus, the scale factor you should use is 3.