Dimensional analysis provides many simple and useful tools for various situations in science. The objective of this paper is to investigate its relations to functions, i.e., the dimensions for functions that yield physical quantities and those for the arguments of functions. In particular, it is shown that there are three types of functions from a viewpoint of dimensional analysis. The results presented here seem to be useful in several aspects and can also be applied to similar circumstances in other disciplines which deal with quantities with dimensions.