This research is motivated by the problem of students who cheat while exam. Cheating can interfere in the evaluation process. A system was made for essay type questions because exams that use computers/smartphones are still many using multiplechoice questions. The method used for essay scoring is term frequency, n-gram, and cosine similarity. The concept is comparing keyword answers as query and student answer as a document then get a score of student answer. This method can also be used in another way, which is comparing answers between students where the result is a score of similarity student answers. Student answers that have 75% similarity will be considered by the system as cheating which is expected to help teachers for evaluating exams or learning.