iPad, iPhone and Mac version license

I have a Paid version on my iPad, can I use this license also on iPhone and Mac?
Or do you need a different license voor every platform?

You have to use the same Apple Id login on the devices then the license will work.