From Arnold Zwicky's blog, quoting Grammarist:
Irony is similar to sarcasm, but the goal of sarcasm is to mock, while irony is usually used to make subtler points.