Der findes to hovedformer for modregning, aftalt og tvungen.