average, were down 14% year-over-year. However, we delivered higher avocado gross margins in the quarter, as we did a good job of managing our pricing spread and sales mix.
“Our RFG segment was impacted by a number of factors, including industry-wide delivery delays at most U.S. ports due to the implementation of additional safety measures related to the pandemic, which caused increased spoilage of fresh fruit and vegetables. In addition, we continued to be impacted comparatively by the closure in April 2020 of our Midwest co-packing partner. Our Foods segment continued to be adversely affected by lower foodservice demand resulting from the pandemic, offset slightly by favorable input commodity prices.
“We are optimistic about the remainder of 2021, particularly the second half. While the pandemic is still having a substantial impact on many of our foodservice customers, we believe that they will be able to bridge from this challenging environment to what we anticipate will be a strong economic rebound once we as a country achieve widespread vaccination and herd immunity. In the meantime, we are moving ahead with the implementation of our strategic initiatives designed to enhance our long-term growth prospects, capitalizing on opportunities to increase operating leverage, further our sustainability initiatives, and realize synergies across our entire organization, with the goal of improving profitability, sustainability, and shareholder value,” concluded Gibson.
First Quarter 2021 Consolidated Financial Review
Total revenue for the first quarter of 2021 was $220.6 million compared to $273.3 million for the first quarter of 2020, representing a 19% decrease. While avocado volumes were higher, increasing 2% over the prior-year period, total revenue was impacted by the lower average selling price of avocados in the Company’s Fresh segment, reflecting increased supply from Mexico, and lower sales volumes in the RFG and Foods segments as a result of the closure of RFG’s Midwest co-packing partner in April 2020 and the prolonged COVID-19 pandemic.
Gross profit for the first quarter was $17.8 million, or 8.1% of revenue, compared to $15.8 million, or 5.8% of revenue, for the same period last year. The increase in gross profit margin percentage was attributable to improvements in the Fresh segment, partially offset by lower gross profit margin percentages in the RFG and Foods segments.
Selling, general and administrative (SG&A) expense for the first quarter totaled $14.2 million, or 6.4% of revenue, compared to $16.3 million, or 6.0% of revenue, for the same period last year. The decline in SG&A expense was primarily due to a decrease in salary and benefit expense as a result of our consolidation initiatives.
Net income for the first quarter of 2021 was $5.3 million, or $0.30 per diluted share. This compares to net loss of $0.9 million, or $(0.05) per diluted share, for the same period last year.