Cash accounting recognizes revenue and expenses when cash is received or paid, while accrual accounting records them when transactions occur.