How do you calculate chi-squared if one of the expected terms is less than 5. Is there software that can do this?

If the assumptions behind the chi-square test don't hold (e.g. more than 10% of your events have expected frequencies below 5) then consider using an exact test, such as Fisher's Exact Test for 2x2 contingency tables.