I want to change my product tax value, it shows round off values.

My Product rate is $49.95 and tax value is 10%. It shows $5.00 but I want it to show $4.99.

I don't know where to change the round off value. I created a tax rule and it's class is properly. I think I need to edit the core files. I want to know which file to change the round off value into normal tax value.

Can anyone please help me?


Go to app\code\core\Mage\Tax\Model\Calculation.php and somewhere on line #466 there is a function.

public function calcTaxAmount($price, $taxRate, $priceIncludeTax=false, $round=true)
    $taxRate = $taxRate/100;

    if ($priceIncludeTax) {
        $amount = $price*(1-1/(1+$taxRate));
    } else {
        $amount = $price*$taxRate;

    /*if ($round) {
        return $this->round($amount);

    return $amount;

I have just commented out the last if condition.

But please override it, do not make any changes in core class.

Good Luck!:)

  • Thanks For your answer shireen, i did the changes but Tax still shows $5.00 dollor. Apr 7 '15 at 8:37
  • Did you first try this change in core class ?
    – Shireen N
    Apr 7 '15 at 9:22
  • yes shireen i change the function as you mentioned above but the Tax amount still shows $5.00 dollar Apr 7 '15 at 9:24
  • I tried but it still loads $5.00 dollar tax. is there any other way to remove round off Tax value it shows like this Subtotal $49.95 GST or Tax $5.00 Apr 7 '15 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.