Hi friends, I want to know what should be the trace width for 1A and 2A @ 230VAC supply, whether i can follow the same trace width as DC
I think there is no downside to using the same track width as DC. Keep in mind that at much higher frequencies, skin depth can become a factor however I doubt there are any skin concerns at 50 or 60 hertz.
Voltage tends to not be a factor in track width but is a factor in clearance/creepage requirements. I think that for creepage, IEC and UL standards (like 60950) use RMS working voltages, however you can use peak voltage as a safety margin for calculations.
https://www.protoexpress.com/tools/pcb-conductor-spacing-and-voltage-calculator/
https://www.protoexpress.com/tools/trace-width-and-current-capacity-calculator/
For trace width, what matters is RMS current and allowable temperature rise, not whether it’s AC or DC. At 50/60 Hz, skin effect is negligible, so you can size traces exactly as you would for DC at the same RMS current (1A or 2A). The 230V AC matters for safety, not for trace width. Clearance and creepage must meet standards, take into account insulation class, pollution degree, and board material. Also, add a margin for long-term heating and manufacturing variation. Use DC current calculators for width, but follow IEC/UL rules for spacing and isolation. The two concerns are separate and shouldn’t be mixed.