Writing Rates and Calculating Unit Rates. Learning Outcomes. Write a rate as a fraction; Calculate a unit rate; Calculate a unit price . Write a Rate as a Fraction. Frequently we want to compare two different types of measurements, such as miles to gallons. To make this comparison, we use a rate.