To calculate marginal revenue from total revenue, divide the change in total revenue by the change in the quantity sold.