Welcome, I will do my best to help with your issue
Which breaker? the red reset on the upper thermostat or in the electrical panel?
the electrical panel
Then you probably have a bad thermostat. There's a slim chance it's a bad element but most of the time it's a thermostat
the tank is brand new just installed it
Then you have a dead short. If it trips when you throw the breaker on the short is probably in your wiring. If it trips when the heater calls for hot water then the heater is defective
does the top and bottom theromostate have to be set at the same temp
The upper and lower alternate
Only one is on at one time
it trips when the tank seem to get at full temp
Sounds like a defect in the heater. What size is the breaker?
Ok so the breaker is the right size. Based on what you're telling me it sounds like you have a defective heater assuming you wired it properly which isn't too difficult.
the whole tank defective
A defect in the wiring or a component. Since it's new it's under warranty and they should give you a free replacement.
ok will contact the store thanks for your help