Per IRS Publication 463 Travel, Gift, and Car Expenses, on page 2:
An ordinary expense is one that is common and accepted in your trade or business. A necessary expense is one that is helpful and appropriate for your business. An expense doesn’t have to be required to be considered necessary.
Note that any link in the information above is updated each year automatically and will take you to the most recent version of the document at the time it is accessed.