for sine wave you can directly divide it's maximum value from root2 to get rms value.
but for other waveform u have to use general formula of root mean square i.e first find the sq.root of mean of square of instantaneous values
it can also be found practically by measuring heat produced for equal time of flow of the current of unknown waveform and a dc current. the value of dc current gives the rms value of that unknown waveform current