Section 107 of the U.S. Copyright code (Fair Use) provides four parameters, or factors, for interpreting the use of copyrighted material without the permission of the copyright holder as legal:
All of these factors are considered together when determining the use of copyrighted material as fair. Thus, an educational purpose alone does not necessarily make a use fair, nor does a commercial purpose necessarily make it unfair.
Even using the Four Factors as a guide, the distinction between a fair use and infringing use of copyrighted material is not always clear. It is always best to ask permission to use copyrighted material.