Calculate dimensions
Type a width or height — the other fills in automatically at a 2:3 ratio.
Other ratios
Use it in code
Click to copy.
.element {
aspect-ratio: 2 / 3;
}
Decimal ratio 0.6667:1. Commonly used for Portrait orientation of 3:2 camera sensors.