Benefits of five precepts I believe in karma and rebirth but I don’t understand one thing. How does five precepts give you merits? Isn’t it only preventing bad karma? If you don’t kill any living beings or don’t steal anything then how do you get merits when you are not doing anything. You are only preventing bad karma.
Actually abstaining from breaking the precepts does a lot more than just passive non-doing. By asbstaining from killing, one's given a great gift to many others: the freedom from fear, enmity, and affliction:


  "“Here, a noble disciple, having abandoned the destruction of life, abstains from the destruction of life. By abstaining from the destruction of life, the noble disciple gives to an immeasurable number of beings freedom from fear, enmity, and affliction. He himself in turn enjoys immeasurable freedom from fear, enmity, and affliction. This is the first gift, a great gift, primal, of long standing, traditional, ancient, unadulterated and never before adulterated, which is not being adulterated and will not be adulterated, not repudiated by wise ascetics and brahmins. This is the fourth stream of merit … that leads to what is wished for, desired, and agreeable, to one’s welfare and happiness." ~~ AN 8.39 ~~