We use 'have/has to' to describe something we need to do (an obligation):
- I have to go to school tomorrow. (= I must go to school tomorrow.)
- You have to go home now. (= You must go home now.)
- He has to go to work now. (= He must go to work now.)
'Have to' is short for 'have something to do'.
To negate 'have to', put 'do/does not' in front of it: do/does not have to.
- I don’t have to go to school tomorrow.
- You don’t have to go home yet.
- He doesn't have to go to work yet.
Note that 'don't have to' does not mean the same thing as 'must not'. 'Mustn't' means that you absolutely should not do something. 'Don't have to' simply makes something optional.
- You mustn't go to school tomorrow. (= Don't go to school tomorrow!)
- You don't have to go to school tomorrow. (= You are sick. You can go to school if you want, but it is OK if you don't.)
- You mustn't go home yet. (= Don't go home yet!)
- You don’t have to go home yet. (= You can go home if you want, but it is OK to stay here longer.)