Generally, the ranitidine dosage is based on a dog's weight with.25 to 1mg per pound given every 8 to 12 hours, but your veterinarian should determine your actual dog's dosage to be safe.
Tablets come in 75 mg, 150 mg, and 300 mg sizes although your vet can also administer it via injection.